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

highlighting commands does not consider environment variables #611

Closed
euclio opened this issue Apr 10, 2019 · 2 comments
Closed

highlighting commands does not consider environment variables #611

euclio opened this issue Apr 10, 2019 · 2 comments

Comments

@euclio
Copy link

euclio commented Apr 10, 2019

If you start a command with an environment variable, the command is highlighted as if it is invalid.

$ /bin/sh     # highlighted correctly
$ export BIN=/bin
$ $BIN/sh   # highlighted with the "invalid command" highlighting, even though `$BIN` contains a valid path
@phy1729
Copy link
Member

phy1729 commented Apr 10, 2019

The export is unrelated. The issue is that the block handling parameters (et seq) only handles $foo or ${foo}. Looks like a dup of #484.

@danielshahaf
Copy link
Member

Duplicate of #484, with virtually the same example, even.

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

No branches or pull requests

3 participants