Update msh.c
This commit is contained in:
parent
1df4c1b962
commit
1c8693c87e
|
@ -276,7 +276,7 @@ int msh_exec(char* cmd, rt_size_t length)
|
||||||
while(*cmd != ' ')
|
while(*cmd != ' ')
|
||||||
{
|
{
|
||||||
if (*cmd == 0) break;
|
if (*cmd == 0) break;
|
||||||
cmd++;
|
cmd++;
|
||||||
}
|
}
|
||||||
if (*cmd == ' ') *cmd = 0;
|
if (*cmd == ' ') *cmd = 0;
|
||||||
rt_kprintf("%s: command not found.\n", argv[0]);
|
rt_kprintf("%s: command not found.\n", argv[0]);
|
||||||
|
|
Loading…
Reference in New Issue