From c6ed9f094658c0083d277e94ba48379df3aa6cbb Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sun, 13 Jan 2019 18:50:45 -0500 Subject: Add PS0 --- bin/cash/parser.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bin/cash/parser.c') diff --git a/bin/cash/parser.c b/bin/cash/parser.c index 86c09776..91771e81 100644 --- a/bin/cash/parser.c +++ b/bin/cash/parser.c @@ -129,6 +129,7 @@ static void consumetoken(int); static void synexpect(int) __dead2; static void synerror(const char *) __dead2; static void setprompt(int); +static char *expandprompt(const char *); static int pgetc_linecont(void); @@ -1937,6 +1938,11 @@ setprompt(int which) if (which == 0) return; + if (which == 1 && *ps0val()) { + out2str(expandprompt(ps0val())); + flushout(out2); + } + #ifndef NO_HISTORY if (!el) #endif -- cgit 1.4.1