nshlib: Rename 'sh' command to 'source' command

since this command change the parent environment variable and
add new '.' command which has the same functionality as 'source'

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2020-04-18 21:57:26 +08:00
committed by patacongo
parent 9ab5e2ff45
commit d307758c3c
6 changed files with 28 additions and 22 deletions

View File

@@ -131,7 +131,7 @@ int nsh_script(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd,
if (pret)
{
/* Parse process the command. NOTE: this is recursive...
* we got to cmd_sh via a call to nsh_parse. So some
* we got to cmd_source via a call to nsh_parse. So some
* considerable amount of stack may be used.
*/