Re:How to navigate directories faster with Bash (2015)
by myicgygc843467 on Thursday April 22, 2021 @04:56AM
(#26900431)
Is !$ the same as $_ ?
[ Parent
| on HN ]
Re:How to navigate directories faster with Bash (2015)
by johncoltrane on Thursday April 22, 2021 @06:01AM
(#26900855)
Re:How to navigate directories faster with Bash (2015)
by tome on Thursday April 22, 2021 @07:47AM
(#26901651)
Looks like !$ is a readline feature and $_ is a shell variable?
Re:How to navigate directories faster with Bash (2015)
by yrro on Thursday April 22, 2021 @09:09AM
(#26902323)
Yes. $_ is documented here: https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash....
And !$ is documented here: https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash....
Re:How to navigate directories faster with Bash (2015)
by mturmon on Thursday April 22, 2021 @12:03PM
(#26904309)
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