Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

history expansion interactively, scripted, and (z) PE



% zsh -f
% : !?foo bar 
zsh: no such event: foo bar
% zsh -fc ': !?foo bar'
zsh:1: no matches found: !?foo
% print -l ${(z)${:-': !?foo bar'}}
:
!?foo
bar


It seems history expansions are interpreted differently interactively
and scripted and that the (z) PE flag follows the scripted parsing.
Shouldn't these all be parsed the same way?

- Matthew Martin



Messages sorted by: Reverse Date, Date, Thread, Author