Merge pull request #1367 from a-b/patch-1
Add bash $_ last argument of the previous command
This commit is contained in:
commit
ecf5282f1f
13
bash.md
13
bash.md
|
@ -327,12 +327,13 @@ fi
|
|||
|
||||
### Arguments
|
||||
|
||||
| Expression | Description |
|
||||
| --- | --- |
|
||||
| `$#` | Number of arguments |
|
||||
| `$*` | All arguments |
|
||||
| `$@` | All arguments, starting from first |
|
||||
| `$1` | First argument |
|
||||
| Expression | Description |
|
||||
| --- | --- |
|
||||
| `$#` | Number of arguments |
|
||||
| `$*` | All arguments |
|
||||
| `$@` | All arguments, starting from first |
|
||||
| `$1` | First argument |
|
||||
| `$_` | Last argument of the previous command |
|
||||
|
||||
See [Special parameters](http://wiki.bash-hackers.org/syntax/shellvars#special_parameters_and_shell_variables).
|
||||
|
||||
|
|
Loading…
Reference in New Issue