Subject: bug#8000: 23.2; strange behavior of !$ in shell window

From: Glenn Morris <[email-masked]>
Date: Mon, 7 Feb 2011 23:31:21 -0500

> > 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"

Oh, I guess you meant to say '!$', like in your subject line, not '!!'.
Apparently this is tcsh's equivalent of bash's $_.
Maybe the history expansion of this isn't implemented (?).
Personally I'd just use $_.