From ac5e2d7fde7498ce11a8f2001efedc7e9dee743c Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Sun, 10 Dec 2017 19:52:09 +0800 Subject: [PATCH] Bash: fix $? (#296) --- bash.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bash.md b/bash.md index b5687745f..b35655512 100644 --- a/bash.md +++ b/bash.md @@ -610,9 +610,9 @@ echo $ans 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 shell |