diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-05-21 20:30:51 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-05-21 20:30:51 +0000 |
commit | 9cf9dad93666777f825ef46617056871534bec1f (patch) | |
tree | b6f1eb9281b70d0723d82a68ed090e619dbbf606 /shell/lash.c | |
parent | 63a2ff929f13762d6d843471d1364c99959c7466 (diff) | |
download | busybox-w32-9cf9dad93666777f825ef46617056871534bec1f.tar.gz busybox-w32-9cf9dad93666777f825ef46617056871534bec1f.tar.bz2 busybox-w32-9cf9dad93666777f825ef46617056871534bec1f.zip |
Patch from Lars Kellogg-Stedman <lars@larsshack.org> to fix bug
#1130 (i.e. When you turn on features it should always ADD features)
git-svn-id: svn://busybox.net/trunk/busybox@2690 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell/lash.c')
-rw-r--r-- | shell/lash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/lash.c b/shell/lash.c index cb17e2d75..f1200ba95 100644 --- a/shell/lash.c +++ b/shell/lash.c | |||
@@ -436,7 +436,7 @@ static int builtin_export(struct child_prog *child) | |||
436 | res = putenv(v); | 436 | res = putenv(v); |
437 | if (res) | 437 | if (res) |
438 | fprintf(stderr, "export: %m\n"); | 438 | fprintf(stderr, "export: %m\n"); |
439 | #ifndef BB_FEATURE_SH_SIMPLE_PROMPT | 439 | #ifdef BB_FEATURE_SH_FANCY_PROMPT |
440 | if (strncmp(v, "PS1=", 4)==0) | 440 | if (strncmp(v, "PS1=", 4)==0) |
441 | PS1 = getenv("PS1"); | 441 | PS1 = getenv("PS1"); |
442 | #endif | 442 | #endif |
@@ -809,7 +809,7 @@ static void restore_redirects(int squirrel[]) | |||
809 | 809 | ||
810 | static inline void cmdedit_set_initial_prompt(void) | 810 | static inline void cmdedit_set_initial_prompt(void) |
811 | { | 811 | { |
812 | #ifdef BB_FEATURE_SH_SIMPLE_PROMPT | 812 | #ifndef BB_FEATURE_SH_FANCY_PROMPT |
813 | PS1 = NULL; | 813 | PS1 = NULL; |
814 | #else | 814 | #else |
815 | PS1 = getenv("PS1"); | 815 | PS1 = getenv("PS1"); |
@@ -820,7 +820,7 @@ static inline void cmdedit_set_initial_prompt(void) | |||
820 | 820 | ||
821 | static inline void setup_prompt_string(char **prompt_str) | 821 | static inline void setup_prompt_string(char **prompt_str) |
822 | { | 822 | { |
823 | #ifdef BB_FEATURE_SH_SIMPLE_PROMPT | 823 | #ifndef BB_FEATURE_SH_FANCY_PROMPT |
824 | /* Set up the prompt */ | 824 | /* Set up the prompt */ |
825 | if (shell_context == 0) { | 825 | if (shell_context == 0) { |
826 | if (PS1) | 826 | if (PS1) |