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

Adjacent symbols and strings considered as two tokens #156

Open
dundalek opened this issue Sep 20, 2019 · 0 comments
Open

Adjacent symbols and strings considered as two tokens #156

dundalek opened this issue Sep 20, 2019 · 0 comments

Comments

@dundalek
Copy link
Owner

For example a common pattern of passing environmnet variables:

$ env DB_HOSTNAME="localhost" bash -c "echo ${DB_HOSTNAME}"

errors with:

env: ‘localhost’: No such file or directory

This is because adjacent symbol and string is considered as two tokens, so it is the same as:

env DB_HOSTNAME= localhost

A workaround is to wrap the whole thing in quotes, but it is not very nice:

env "DB_HOSTNAME=localhost"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant