Bash: fix $? (#296)

This commit is contained in:
Rico Sta. Cruz 2017-12-10 19:52:09 +08:00
parent fd39be3751
commit ac5e2d7fde
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 2 additions and 2 deletions

View File

@ -610,9 +610,9 @@ echo $ans
read -n 1 ans # Just one character read -n 1 ans # Just one character
``` ```
### Process IDs ### Special variables
| `$?` | PID of last foreground task | | `$?` | Exit status of last task |
| `$!` | PID of last background task | | `$!` | PID of last background task |
| `$$` | PID of shell | | `$$` | PID of shell |