nsh: Pass the correct command lines to nsh_consolemain
Change-Id: Ic6617cecb6949054e6bdce8757523e7a60d83eb0 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
6ddbffd200
commit
6aca60133c
@ -382,7 +382,7 @@ int main(int argc, FAR char *argv[])
|
||||
|
||||
pid = task_create("NSH Console", CONFIG_EXAMPLES_PTYTEST_DAEMONPRIO,
|
||||
CONFIG_EXAMPLES_PTYTEST_STACKSIZE, nsh_consolemain,
|
||||
argv);
|
||||
&argv[1]);
|
||||
if (pid < 0)
|
||||
{
|
||||
/* Can't do output because stdout and stderr are redirected */
|
||||
|
@ -230,7 +230,7 @@ int shell_pipe_exec(char * const argv[], shell_pipe_t *apipe,
|
||||
|
||||
ret = task_create("ADB shell", CONFIG_SYSTEM_NSH_PRIORITY,
|
||||
CONFIG_SYSTEM_NSH_STACKSIZE, nsh_consolemain,
|
||||
argv);
|
||||
&argv[1]);
|
||||
|
||||
/* Close stdin and stdout */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user