Re: what's $_ in bash

2023-05-02 Thread Yassine Chaouche
Le 4/8/23 à 04:35, t...@myposts.ovh a écrit : Hello in bash shell, what's "$_" variable? where defines it? Thanks. It's the last argument of the last command. I use it often when installing a package. Something like: $ apt-cache show "package-name" [... read the descrip

Re: what's $_ in bash

2023-04-08 Thread Kent West
On 4/7/23 23:40, davidson wrote: On Sat, 8 Apr 2023 t...@myposts.ovh wrote: Hello in bash shell, what's "$_" variable? kent@westk-9463:~$ ls *html morsekeyer.html  morse.html  myGameEasier.html  myGame.html The 'ls *html' "expands" to "ls morsekeyer.html mors

Re: what's $_ in bash

2023-04-07 Thread davidson
On Sat, 8 Apr 2023 t...@myposts.ovh wrote: Hello in bash shell, what's "$_" variable? I'd be interested to learn as well. where defines it? In the meantime you can read in $ man bash under section "PARAMETERS", subheading "Shell Variables": Shell Variab

what's $_ in bash

2023-04-07 Thread tom
Hello in bash shell, what's "$_" variable? where defines it? Thanks.