Open zaidhaan opened 1 year ago
Looks like this is a zsh bug
printf '<%s>' ${(z)${:-'!-2:&'}}
<!-2:><&>
(That means the (z)
PE flag is splitting the &
into a separate token when it should be all one token.)
Looks like this is a zsh bug
Reported at https://zsh.org/workers/51819
Screenshot: (note that expansion does work as expected after hitting return.
&
however, is not highlighted)Reproducible setup:
Relevant zsh manual section: 14.1.4 Modifiers.
I'm no zsh expert but I think all modifiers apply to history expansions too, so the modifier
&
should be also be highlighted inhistory-expansion
.