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

Re: !!$ unitialized at first prompt



On 24 September 2010 06:43, Benjamin R. Haskell <zsh@xxxxxxxxxx> wrote:
> On Fri, 24 Sep 2010, Benjamin R. Haskell wrote:
>
>> # but it also doesn't expand to the correct value:
>> # (without an intervening command)
>> second-shell$ echo x!{$}y
>> quote><ctrl-c>
>> echo xb'y
>>
>
> The words are definitely split wrong.  Not just '$':
>
> first-shell$ echo 'a b' 'c d'
> a b c d
> first-shell$ <ctrl-d>
>
> second-shell$ !!0-2
> echo 'a b'
> a b
>
>> [...]
>> Reproducible with HISTFILE=/tmp/testhist ZDOTDIR=/nonexistent zsh -f.

Could this be related to
http://thread.gmane.org/gmane.comp.shells.zsh.devel/20904 ? That also
only happens when reloading history.

-- 
Mikael Magnusson



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