aboutsummaryrefslogtreecommitdiff
path: root/sh.c
diff options
context:
space:
mode:
Diffstat (limited to 'sh.c')
-rw-r--r--sh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sh.c b/sh.c
index 49fb6b536..dcec14aba 100644
--- a/sh.c
+++ b/sh.c
@@ -440,7 +440,7 @@ static int builtin_export(struct child_prog *child)
440 res = putenv(v); 440 res = putenv(v);
441 if (res) 441 if (res)
442 fprintf(stderr, "export: %m\n"); 442 fprintf(stderr, "export: %m\n");
443#ifndef BB_FEATURE_SIMPLE_PROMPT 443#ifndef BB_FEATURE_SH_SIMPLE_PROMPT
444 if (strncmp(v, "PS1=", 4)==0) 444 if (strncmp(v, "PS1=", 4)==0)
445 PS1 = getenv("PS1"); 445 PS1 = getenv("PS1");
446 else if (strncmp(v, "PS2=", 4)==0) 446 else if (strncmp(v, "PS2=", 4)==0)
@@ -805,7 +805,7 @@ static void restore_redirects(int squirrel[])
805 805
806static inline void cmdedit_set_initial_prompt(void) 806static inline void cmdedit_set_initial_prompt(void)
807{ 807{
808#ifdef BB_FEATURE_SIMPLE_PROMPT 808#ifdef BB_FEATURE_SH_SIMPLE_PROMPT
809 PS1 = NULL; 809 PS1 = NULL;
810 PS2 = "> "; 810 PS2 = "> ";
811#else 811#else
@@ -821,7 +821,7 @@ static inline void cmdedit_set_initial_prompt(void)
821 821
822static inline void setup_prompt_string(char **prompt_str) 822static inline void setup_prompt_string(char **prompt_str)
823{ 823{
824#ifdef BB_FEATURE_SIMPLE_PROMPT 824#ifdef BB_FEATURE_SH_SIMPLE_PROMPT
825 /* Set up the prompt */ 825 /* Set up the prompt */
826 if (shell_context == 0) { 826 if (shell_context == 0) {
827 if (PS1) 827 if (PS1)