Hacker News new | ask | show | jobs
by johncoltrane 1885 days ago
https://stackoverflow.com/questions/41385015/what-is-bang-do...
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