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

Unset parameter expansions #239

Closed
danielshahaf opened this issue Nov 25, 2015 · 4 comments
Closed

Unset parameter expansions #239

danielshahaf opened this issue Nov 25, 2015 · 4 comments
Labels

Comments

@danielshahaf
Copy link
Member

Consider having —

% unset foo
% echo $foo

— highlight the expansion $foo as an error/warning, since the parameter is unset.

@danielshahaf
Copy link
Member Author

Cross-referencing #691.

@danielshahaf
Copy link
Member Author

Closing in favour of #509.

@danielshahaf danielshahaf reopened this Mar 28, 2020
danielshahaf added a commit to danielshahaf/zsh-syntax-highlighting that referenced this issue Mar 28, 2020
The existing check was bogus: parameter expansion doesn't depend on
whether there happens to be a command literally called «$foo».

This enables the parameter elision logic to kick in for words not in
command position.

Fixes zsh-users#239.
@danielshahaf
Copy link
Member Author

Reopened since #718 fixes this specifically, but not all of #509.

danielshahaf added a commit to danielshahaf/zsh-syntax-highlighting that referenced this issue Mar 28, 2020
The existing check was bogus: parameter expansion doesn't depend on
whether there happens to be a command literally called «$foo».

This enables the parameter elision logic to kick in for words not in
command position.

Fixes zsh-users#239.
@danielshahaf
Copy link
Member Author

Closing in favour of #450.

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

No branches or pull requests

1 participant