aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ksh/kshrc.d/prompt.ksh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ksh/kshrc.d/prompt.ksh b/ksh/kshrc.d/prompt.ksh
index 90e813f0..a8835803 100644
--- a/ksh/kshrc.d/prompt.ksh
+++ b/ksh/kshrc.d/prompt.ksh
@@ -177,7 +177,7 @@ prompt() {
# Show return status of previous command in angle brackets, if not zero
ret)
- local ret=$2
+ typeset ret=$2
((ret)) && printf '<%u>' "$ret"
;;