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

Re: history expansion



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 <markjreed@xxxxxxxxx>

On Sun, Jul 12, 2026 at 13:15 Vincent Lefevre <vincent@xxxxxxxxxx> 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 <vincent@xxxxxxxxxx> - 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)



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