history expansion

Vincent Lefevre <[email protected]> Sun, 12 Jul 2026 10:57:23 +0200
Newsgroups gmane.comp.shells.zsh.user
Message-ID <[email protected]>
I'm wondering whether users use history expansion in practice, as it
does not seem to be very useful with the power of ZLE (I suppose that
one can do the same kind of things, with the advantage of seeing the
immediate effect).

It can have a surprising behavior. For instance, after "zsh -f":

qaa% echo "foo!"
dquote>

Note that bash does not have any issue here. But there is the same
behavior with the less common

  echo "foo!!"

-- 
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)