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

Re: unsetopt banghist does not work.



In article <9907300846.AA31025@xxxxxxxxxxxxxxxxx>,
  Peter Stephenson <pws@xxxxxxxxxxxxxxxxx> writes:

> The following ought to work (the first hunk is just because the logic
> confused me), but could everybody please try this on the favourite mode of
> history usage.  Judging by the fact that it's been there for weeks, nobody
> uses nobanghist anyway.

Usually, I use nobanghist. :-)
But it is very rare case to use ! for a argument...

> I suppose I'm going to be told the following is just how history is
> supposed to work?
> 
>   % unsetopt banghist
>   % echo !!
>   !!
>   % setopt banghist
>   % !!
>   zsh: no such word in event

This behaviour is different to zsh-3.1.5-pws-21 and zsh-3.1.5.

Z(2):akr@is27e1u11% zsh-3.1.5-pws-21 -f
is27e1u11% unsetopt banghist
is27e1u11% echo !!
!!
is27e1u11% setopt banghist
is27e1u11% !!
setopt banghist
is27e1u11% 
-- 
Tanaka Akira



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