summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-04-30 19:24:24 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2009-04-30 19:24:24 (GMT)
commit690ad2426e38e8257f9266992c28c7d5e05eafa5 (patch)
tree052900a50f930356327ecc1b1680d7bbe965be1f
parent1fd3b38fd19057e7b048e08d6157ece06874feb1 (diff)
downloadbusybox-690ad2426e38e8257f9266992c28c7d5e05eafa5.tar.gz
busybox-690ad2426e38e8257f9266992c28c7d5e05eafa5.tar.bz2
git commit test
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--shell/hush.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 45a9733..692076c 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -1453,8 +1453,9 @@ static void cmdedit_update_prompt(void)
if (G.PS1 == NULL)
G.PS1 = "\\w \\$ ";
G.PS2 = get_local_var_value("PS2");
- } else
+ } else {
G.PS1 = NULL;
+ }
if (G.PS2 == NULL)
G.PS2 = "> ";
}