GNU bug report logs -
#8000
23.2; strange behavior of !$ in shell window
Previous Next
Reported by: relson <at> osage
Date: Tue, 8 Feb 2011 01:54:02 UTC
Severity: normal
Tags: patch
Merged with 7883
Found in version 23.2
Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 8000 <at> debbugs.gnu.org (full text, mbox):
Please use a valid email address to report bugs. I cannot reply to your
address, so I hope you will read this.
relson <at> osage wrote:
> In a shell (bash) window, if I type "echo x<enter>", the character "x"
> is echoed (as expected).
>
> If I then type "ls -l !!<tab>" the complete previous command is added
> to the current line andwhat is executed is "ls -l echo x". What
> _should_ have been execute is "ls -l x"
Why is that what should have been executed? I thought `!!' was a tcsh
feature (making it kind of strange that it works in a bash shell at all
IMO...) that expands to the previous command, not the stdout of the
previous command. I'm not aware of any shell history expansion that
works in terms of the output of old commands. This would make no sense
in the majority of cases (eg cp etc).
This bug report was last modified 14 years and 156 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.