Re: history expansion

"Mark J. Reed" <[email protected]> Sun, 12 Jul 2026 13:16:30 -0400
Newsgroups gmane.comp.shells.zsh.devel
Message-ID <CAA=-s3wkPZFuaWiaE1g1z+DpxkmQ+MMgPyDg-+FZV8zkvsXEBw__26832.2492645652$1783881124$gmane$org@mail.gmail.com>
Maybe it's less surprising to have it on because most users will be coming
from bash, where it is likewise on by default in interactive shells?


Mark J. Reed <[email protected]>

On Sun, Jul 12, 2026 at 13:15 Vincent Lefevre <[email protected]> wrote:

> On 2026-07-12 09:36:36 -0400, Mark J. Reed wrote:
> > I use history substitution all the time. I'm occasionally annoyed by the
> > need to extra-quote exclamation points, but not enough to give up the
> > feature, which you can always turn off with *unsetopt banghist*.
>
> I was more thinking about why it was not turned off by default
> (principle of least surprise for most users).
>
> --
> 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)
>
>