add the $0 special variable to bash.md

This commit is contained in:
Michael King 2019-10-02 11:27:23 -04:00
parent 1e927dccfc
commit 8843c62e6d
1 changed files with 2 additions and 1 deletions

View File

@ -735,6 +735,7 @@ read -n 1 ans # Just one character
| `$?` | Exit status of last task | | `$?` | Exit status of last task |
| `$!` | PID of last background task | | `$!` | PID of last background task |
| `$$` | PID of shell | | `$$` | PID of shell |
| `$0` | Filename of the shell script |
See [Special parameters](http://wiki.bash-hackers.org/syntax/shellvars#special_parameters_and_shell_variables). See [Special parameters](http://wiki.bash-hackers.org/syntax/shellvars#special_parameters_and_shell_variables).