Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
History and $!
- X-seq: zsh-workers 13240
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: History and $!
- Date: Tue, 5 Dec 2000 17:11:28 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
This is not a very significant bug, but ... the history mechanism ignores $!
some of the time:
zsh% sleep 60 &
zsh% echo $!
1507
But various other forms don't work:
zsh% echo ${!}
echo ${echo $!}
zsh: bad substitution
zsh% echo "$!"
dquote>
This problem has been around for a very long time. Of course, one can do
zsh% echo ${\!}
1507
Or even
zsh% echo $\!
1507
But that's a bit odd, because it doesn't work for any other variable name,
and it doesn't work when history is not active.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author