aboutsummaryrefslogtreecommitdiff
path: root/pdksh
diff options
context:
space:
mode:
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