zsh-workers
 help / color / mirror / code / Atom feed
* !!$ unitialized at first prompt
@ 2010-09-24  4:36 Benjamin R. Haskell
  2010-09-24  4:43 ` Benjamin R. Haskell
  0 siblings, 1 reply; 14+ messages in thread
From: Benjamin R. Haskell @ 2010-09-24  4:36 UTC (permalink / raw)
  To: Zsh Workers

Experiencing bizarre behavior when the first thing I do in the shell is 
to call expand-or-complete on !$.

If the value of !$ contains something from $IFS, it expands improperly 
during the first command to just the last word.

# get something into history that has a space-y last arg
first-shell$ echo 'a b'
a b
first-shell$ <ctrl-d> to logout

# first noticed the weird tab-completion
second-shell$ echo !$<tab>
zsh: do you want to see all 294 possibilities (49 lines)?

# 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

I first thought it was related to having just added csh_junkie_history 
to my preferred options, but it's not.  Reproducible with 
HISTFILE=/tmp/testhist ZDOTDIR=/nonexistent zsh -f.  Seems like 
something's not being initialized in the correct order.

-- 
Best,
Ben


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2010-09-26  1:14 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-24  4:36 !!$ unitialized at first prompt Benjamin R. Haskell
2010-09-24  4:43 ` Benjamin R. Haskell
2010-09-24 11:48   ` Mikael Magnusson
2010-09-24 12:39     ` Peter Stephenson
2010-09-24 14:18       ` Benjamin R. Haskell
2010-09-24 14:26         ` Peter Stephenson
2010-09-24 15:30           ` Bart Schaefer
2010-09-24 15:10       ` Bart Schaefer
2010-09-24 15:20         ` Mikael Magnusson
2010-09-24 20:12         ` Peter Stephenson
2010-09-25  6:53           ` Bart Schaefer
2010-09-25 17:26             ` Wayne Davison
2010-09-25 18:49               ` Peter Stephenson
2010-09-26  1:14                 ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).