diff options
author | Jack Palevich <jackpal@google.com> | 2010-06-04 12:03:14 +0800 |
---|---|---|
committer | Jack Palevich <jackpal@google.com> | 2010-06-04 12:03:14 +0800 |
commit | ad5431d2ca9c4dd454dfb3bc8e9de3ee0ad28a27 (patch) | |
tree | 1cf34b2f81ce28ef5c6c81513d33e8ec97741003 /sh/parser.c | |
parent | 1bc4eae3492b5e5fd8afdb3bb92c63287e8e994c (diff) | |
download | system_core-ad5431d2ca9c4dd454dfb3bc8e9de3ee0ad28a27.zip system_core-ad5431d2ca9c4dd454dfb3bc8e9de3ee0ad28a27.tar.gz system_core-ad5431d2ca9c4dd454dfb3bc8e9de3ee0ad28a27.tar.bz2 |
Emit shell prompt even when in non-interactive mode.
Change-Id: If85c509efe13e4bdb40216c79d560ea7f83ba813
Diffstat (limited to 'sh/parser.c')
-rw-r--r-- | sh/parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sh/parser.c b/sh/parser.c index d956375..faf0268 100644 --- a/sh/parser.c +++ b/sh/parser.c @@ -1629,9 +1629,9 @@ setprompt(int which) if (!el) #endif #ifdef WITH_LINENOISE -#else - out2str(getprompt(NULL)); + if (! in_interactive_mode() ) #endif + out2str(getprompt(NULL)); } /* |