aboutsummaryrefslogtreecommitdiff
path: root/hush.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-05-21 20:30:51 +0000
committerEric Andersen <andersen@codepoet.org>2001-05-21 20:30:51 +0000
commit004015e9c4e8ff98bcbaf955cf42147218204da4 (patch)
treeb6f1eb9281b70d0723d82a68ed090e619dbbf606 /hush.c
parentabec344ab7060d940f133d93b76e6bbe5881e205 (diff)
downloadbusybox-004015e9c4e8ff98bcbaf955cf42147218204da4.tar.gz
Patch from Lars Kellogg-Stedman <lars@larsshack.org> to fix bug
#1130 (i.e. When you turn on features it should always ADD features)
Diffstat (limited to 'hush.c')
-rw-r--r--hush.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hush.c b/hush.c
index fc45bb270..722dcf7ac 100644
--- a/hush.c
+++ b/hush.c
@@ -113,7 +113,7 @@
#define applet_name "hush"
#include "standalone.h"
#define shell_main main
-#define BB_FEATURE_SH_SIMPLE_PROMPT
+#undef BB_FEATURE_SH_FANCY_PROMPT
#endif
typedef enum {
@@ -843,7 +843,7 @@ static int static_peek(struct in_str *i)
static inline void cmdedit_set_initial_prompt(void)
{
-#ifdef BB_FEATURE_SH_SIMPLE_PROMPT
+#ifndef BB_FEATURE_SH_FANCY_PROMPT
PS1 = NULL;
#else
PS1 = getenv("PS1");
@@ -855,7 +855,7 @@ static inline void cmdedit_set_initial_prompt(void)
static inline void setup_prompt_string(int promptmode, char **prompt_str)
{
debug_printf("setup_prompt_string %d ",promptmode);
-#ifdef BB_FEATURE_SH_SIMPLE_PROMPT
+#ifndef BB_FEATURE_SH_FANCY_PROMPT
/* Set up the prompt */
if (promptmode == 1) {
if (PS1)