aboutsummaryrefslogtreecommitdiff
path: root/pdksh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-09 10:20:08 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-09 10:20:08 +1200
commitef46b5826a47c137352992146e3c9660cd567b54 (patch)
tree2013e5e441b8f51c6973194c741ee934dd0d7851 /pdksh
parentMake declaration of PROMPT_RETURN pdksh-compatible (diff)
downloaddotfiles-ef46b5826a47c137352992146e3c9660cd567b54.tar.gz
dotfiles-ef46b5826a47c137352992146e3c9660cd567b54.zip
Make prompt printing call pdksh-compatible
I don't think pdksh has a `declare -p (varname)` syntax from what I can tell. typeset -p prints all the variables though.
Diffstat (limited to 'pdksh')
-rw-r--r--pdksh/kshrc.d/prompt.ksh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdksh/kshrc.d/prompt.ksh b/pdksh/kshrc.d/prompt.ksh
index 5081ec0e..a4c5e105 100644
--- a/pdksh/kshrc.d/prompt.ksh
+++ b/pdksh/kshrc.d/prompt.ksh
@@ -3,7 +3,7 @@ prompt() {
# If no arguments, print the prompt strings as they are
if ! (($#)) ; then
- declare -p PS1 PS2 PS3 PS4
+ printf '%s\n' PS1="$PS1" PS2="$PS2" PS3="$PS3" PS4="$PS4"
return
fi