diff options
Diffstat (limited to 'lash.c')
-rw-r--r-- | lash.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |