9
0
Fork 0

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:
Sascha Hauer 2012-04-29 18:46:39 +02:00
parent f034ed2044
commit e21a340e39
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}