From 4acf2a4583d401a6a95f00ffe83e1a7d319e43fc Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 27 Feb 2016 11:07:24 +1300 Subject: Unsigned integers for printf --- bash/bashrc.d/prompt.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash/bashrc.d/prompt.bash') diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash index e437b9a5..307c577b 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -243,7 +243,7 @@ prompt() { # Show return status of previous command in angle brackets, if not zero ret) if ((PROMPT_RETURN > 0)) ; then - printf '<%d>' "$PROMPT_RETURN" + printf '<%u>' "$PROMPT_RETURN" fi ;; -- cgit v1.2.3