diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/shell/ash.c b/shell/ash.c index 09e8725bf..fda4541b4 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -10789,6 +10789,9 @@ optschanged(void) | |||
10789 | #else | 10789 | #else |
10790 | viflag = 0; /* forcibly keep the option off */ | 10790 | viflag = 0; /* forcibly keep the option off */ |
10791 | #endif | 10791 | #endif |
10792 | #if ENABLE_ASH_NOCONSOLE | ||
10793 | hide_console(noconsole); | ||
10794 | #endif | ||
10792 | } | 10795 | } |
10793 | 10796 | ||
10794 | struct localvar_list { | 10797 | struct localvar_list { |
@@ -16075,11 +16078,6 @@ int ash_main(int argc UNUSED_PARAM, char **argv) | |||
16075 | trace_puts_args(argv); | 16078 | trace_puts_args(argv); |
16076 | #endif | 16079 | #endif |
16077 | 16080 | ||
16078 | #if ENABLE_ASH_NOCONSOLE | ||
16079 | if (noconsole) | ||
16080 | hide_console(); | ||
16081 | #endif | ||
16082 | |||
16083 | #if ENABLE_PLATFORM_MINGW32 | 16081 | #if ENABLE_PLATFORM_MINGW32 |
16084 | if (dirarg) { | 16082 | if (dirarg) { |
16085 | chdir(dirarg); | 16083 | chdir(dirarg); |