Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nshlib/nsh_parse: Fix variable arguments concat error of
nsh_execute()
Without this patch nsh> set time 5 nsh> echo $time 5 nsh> sleep $time & sh [5:100] nsh> nsh: sleep: missing required argument(s) With this patch nsh> set time 5 nsh> echo $time 5 nsh> sleep $time & sh [4:100] nsh> ps PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK COMMAND 0 0 0 FIFO Kthread - Ready 0000000000000000 0069616 Idle_Task 1 0 224 FIFO Kthread - Waiting Signal 0000000000000000 0067536 loop_task 2 0 224 FIFO Kthread - Waiting Semaphore 0000000000000000 0067504 hpwork 0x501760e0 0x50176128 3 3 100 FIFO Task - Running 0000000000000000 0067536 nsh_main 4 4 100 FIFO Task - Waiting Signal 0000000000000000 0067520 sh -c sleep Signed-off-by: buxiasen <buxiasen@xiaomi.com> Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
- Loading branch information