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

Re: !!$ unitialized at first prompt



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.
                                                                    ^^
('-f' should be '-d' -- took me a while to figure out why -f was preventing history from being saved -- finally found the mention in the manual.)

--
Best,
Ben



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