aboutsummaryrefslogtreecommitdiff
path: root/pdksh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-09 10:16:38 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-09 10:16:38 +1200
commit610bcb471a883514211f882de47f3004b3859cc9 (patch)
tree2b7e6ca32cbf4fb02ec38a9ac31c1a78d08d8986 /pdksh
parentRemove Bash-specific PROMPT_COMMAND (diff)
downloaddotfiles-610bcb471a883514211f882de47f3004b3859cc9.tar.gz
dotfiles-610bcb471a883514211f882de47f3004b3859cc9.zip
Make declaration of PROMPT_RETURN pdksh-compatible
Diffstat (limited to 'pdksh')
-rw-r--r--pdksh/kshrc.d/prompt.ksh4
1 files changed, 2 insertions, 2 deletions
diff --git a/pdksh/kshrc.d/prompt.ksh b/pdksh/kshrc.d/prompt.ksh
index b5a54a0a..5081ec0e 100644
--- a/pdksh/kshrc.d/prompt.ksh
+++ b/pdksh/kshrc.d/prompt.ksh
@@ -12,8 +12,8 @@ prompt() {
# Turn complex, colored PS1 and debugging PS4 prompts on
on)
- # Declare the PROMPT_RETURN variable as an integer
- declare -i PROMPT_RETURN
+ # Declare the PROMPT_RETURN variable
+ PROMPT_RETURN=0
# Set up prompt, including optional PROMPT_PREFIX and PROMPT_SUFFIX
# variables