Bash: fix $? (#296)
This commit is contained in:
parent
fd39be3751
commit
ac5e2d7fde
4
bash.md
4
bash.md
|
@ -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 |
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue