hush: allow to run interactive shell in do_sh
This allows to call 'sh' in scripts without arguments in which case an interactive shell will be started. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
f034ed2044
commit
e21a340e39
|
@ -1814,7 +1814,7 @@ int run_shell(void)
|
|||
static int do_sh(int argc, char *argv[])
|
||||
{
|
||||
if (argc < 2)
|
||||
return COMMAND_ERROR_USAGE;
|
||||
return run_shell();
|
||||
|
||||
return execute_script(argv[1], argc - 1, argv + 1);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue