Re: history expansion

"Mark J. Reed" <[email protected]> Sun, 12 Jul 2026 13:16:30 -0400
Newsgroups gmane.comp.shells.zsh.user
Message-ID <CAA=-s3wkPZFuaWiaE1g1z+DpxkmQ+MMgPyDg-+FZV8zkvsXEBw@mail.gmail.com>
--0000000000002d9f4706566d2379
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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 th=
e
> > 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=C3=A8vre <[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)
>
>

--0000000000002d9f4706566d2379
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto">Maybe it&#39;s less surprising to have it on because most=
 users will be coming from bash, where it is likewise on by default in inte=
ractive shells?</div><div><br clear=3D"all"><br clear=3D"all"><div><div dir=
=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_signature">Mark =
J. Reed &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">markjr=
[email protected]</a>&gt;<br></div></div></div><div><br><div class=3D"gmail_quo=
te gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Sun, Jul=
 12, 2026 at 13:15 Vincent Lefevre &lt;<a href=3D"mailto:[email protected]=
">[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quo=
te" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204=
);padding-left:1ex">On 2026-07-12 09:36:36 -0400, Mark J. Reed wrote:<br>
&gt; I use history substitution all the time. I&#39;m occasionally annoyed =
by the<br>
&gt; need to extra-quote exclamation points, but not enough to give up the<=
br>
&gt; feature, which you can always turn off with *unsetopt banghist*.<br>
<br>
I was more thinking about why it was not turned off by default<br>
(principle of least surprise for most users).<br>
<br>
-- <br>
Vincent Lef=C3=A8vre &lt;<a href=3D"mailto:[email protected]" target=3D"_b=
lank">[email protected]</a>&gt; - Web: &lt;<a href=3D"https://www.vinc17.n=
et/" rel=3D"noreferrer" target=3D"_blank">https://www.vinc17.net/</a>&gt;<b=
r>
100% accessible validated (X)HTML - Blog: &lt;<a href=3D"https://www.vinc17=
.net/blog/" rel=3D"noreferrer" target=3D"_blank">https://www.vinc17.net/blo=
g/</a>&gt;<br>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)<br=
>
<br>
</blockquote></div></div>

--0000000000002d9f4706566d2379--