Hacker News new | ask | show | jobs
by tome 1888 days ago
Looks like !$ is a readline feature and $_ is a shell variable?
2 comments

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