-
Couldn't load subscription status.
- Fork 1.4k
WIP: 'main': Apply the parameter expansion logic regardless of the type #718
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
base: master
Are you sure you want to change the base?
WIP: 'main': Apply the parameter expansion logic regardless of the type #718
Conversation
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.
f8a0395 to
d0a11ba
Compare
| { | ||
| if (( in_param || in_alias )); then | ||
| return | ||
| fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: review
|
|
||
| if (( path_eligible )); then | ||
| if (( in_redirection )) && [[ $last_arg == *['<>']['&'] && $arg[$1,-1] == (<0->|p|-) ]]; then | ||
| if (( in_redirection && ! in_param )) && [[ $last_arg == *['<>']['&'] && $arg[$1,-1] == (<0->|p|-) ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: review
|
Triage: Incomplete, so deferring. |
See log messages for details.
Any concerns with the changed behaviour (see the updated test expectations)?