mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 19:44:35 +08:00
nsh: Accept the command line arguments like sh
Usage: nsh [<script-path>|-c <command>] Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: Ifb76b27e7fd09d26b1f6e48c391fed0972018041
This commit is contained in:

committed by
David Sidrane

parent
78e8090842
commit
9d80399bd5
@@ -112,7 +112,7 @@ int nsh_consolemain(int argc, FAR char *argv[])
|
||||
|
||||
/* Execute the session */
|
||||
|
||||
ret = nsh_session(pstate, true);
|
||||
ret = nsh_session(pstate, true, argc, argv);
|
||||
|
||||
/* Exit upon return */
|
||||
|
||||
|
Reference in New Issue
Block a user