Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Not all tokens are passed' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Not all tokens are passed
Authored by: lullabud on Oct 03, '05 10:37:21AM
Interesting trick. The first thing I see that could be problematic is that it doesn't output ALL tokens from the previous command, but only the last one. Example:
$ echo foo bar cat 
foo bar cat
$ echo !$
echo cat
Not a big deal, but I thought it worth noting.

[ Reply to This | # ]
Not all tokens are passed
Authored by: kejadlen on Oct 03, '05 10:45:02AM

!$ gets only the last argument.

!* should get all of the last arguments, though.

[ Reply to This | # ]