diff options
-rw-r--r-- | lash.c | 4 | ||||
-rw-r--r-- | sh.c | 4 | ||||
-rw-r--r-- | shell/lash.c | 4 |
3 files changed, 6 insertions, 6 deletions
@@ -774,9 +774,9 @@ static int get_command(FILE * source, char *command) | |||
774 | return 1; | 774 | return 1; |
775 | } | 775 | } |
776 | 776 | ||
777 | prompt_str = setup_prompt_string(shell_context); | ||
778 | |||
779 | if (source == stdin) { | 777 | if (source == stdin) { |
778 | prompt_str = setup_prompt_string(shell_context); | ||
779 | |||
780 | #ifdef BB_FEATURE_SH_COMMAND_EDITING | 780 | #ifdef BB_FEATURE_SH_COMMAND_EDITING |
781 | /* | 781 | /* |
782 | ** enable command line editing only while a command line | 782 | ** enable command line editing only while a command line |
@@ -774,9 +774,9 @@ static int get_command(FILE * source, char *command) | |||
774 | return 1; | 774 | return 1; |
775 | } | 775 | } |
776 | 776 | ||
777 | prompt_str = setup_prompt_string(shell_context); | ||
778 | |||
779 | if (source == stdin) { | 777 | if (source == stdin) { |
778 | prompt_str = setup_prompt_string(shell_context); | ||
779 | |||
780 | #ifdef BB_FEATURE_SH_COMMAND_EDITING | 780 | #ifdef BB_FEATURE_SH_COMMAND_EDITING |
781 | /* | 781 | /* |
782 | ** enable command line editing only while a command line | 782 | ** enable command line editing only while a command line |
diff --git a/shell/lash.c b/shell/lash.c index dd1d3aa5c..3d54b439e 100644 --- a/shell/lash.c +++ b/shell/lash.c | |||
@@ -774,9 +774,9 @@ static int get_command(FILE * source, char *command) | |||
774 | return 1; | 774 | return 1; |
775 | } | 775 | } |
776 | 776 | ||
777 | prompt_str = setup_prompt_string(shell_context); | ||
778 | |||
779 | if (source == stdin) { | 777 | if (source == stdin) { |
778 | prompt_str = setup_prompt_string(shell_context); | ||
779 | |||
780 | #ifdef BB_FEATURE_SH_COMMAND_EDITING | 780 | #ifdef BB_FEATURE_SH_COMMAND_EDITING |
781 | /* | 781 | /* |
782 | ** enable command line editing only while a command line | 782 | ** enable command line editing only while a command line |