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:
Xiang Xiao 2021-01-03 23:55:39 -08:00 committed by archer
parent 6ddbffd200
commit 6aca60133c
2 changed files with 2 additions and 2 deletions

View File

@ -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 */

View File

@ -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 */