Hacker News new | ask | show | jobs
by myicgygc843467 1885 days ago
Is !$ the same as $_ ?
1 comments

Looks like !$ is a readline feature and $_ is a shell variable?
I don't think !$ is properly understood as a readline feature. It's a sh/bash abbreviation.

!! -> last whole command

!!:1 -> first argument of last command

!!:$ -> last argument of last command

!$ -> abbreviation for above