From be70816eefab2e1559a4d15f2076b3b153e1fe1a Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 26 Aug 2013 15:21:38 +1200 Subject: Unset return value after it's used --- bash/bashrc.d/prompt.bash | 1 + 1 file changed, 1 insertion(+) (limited to 'bash') diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash index a3baaa3b..978472ba 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -153,6 +153,7 @@ prompt() { if ((ret > 0)); then printf '<%d>' "$ret" fi + unset ret ;; # Show the count of background jobs in curly brackets -- cgit v1.2.3