Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

escaped backslash not converted to real backslash #17

Open
PawelSuwinski opened this issue May 11, 2022 · 1 comment · May be fixed by #18
Open

escaped backslash not converted to real backslash #17

PawelSuwinski opened this issue May 11, 2022 · 1 comment · May be fixed by #18

Comments

@PawelSuwinski
Copy link

$ cat /tmp/test.env 
TEST="namespace\\class"

$ source /tmp/test.env && echo $TEST
namespace\class  

$ php -r 'require_once "vendor/autoload.php"; echo  M1\Env\Parser::parse(file_get_contents("/tmp/test.env"))["TEST"].PHP_EOL;'
namespace\\class

expected: namespace\class

@PawelSuwinski PawelSuwinski linked a pull request May 11, 2022 that will close this issue
@PawelSuwinski
Copy link
Author

I think the same with '\$' => '$' to achieve bash .env support as stated in doc:

This library will always be able to parse bash syntax (...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant