README and other cosmetic updates
This commit is contained in:
parent
7ca7ae9fd6
commit
dfeb2b1910
@ -95,6 +95,7 @@ static inline FAR const char *nsh_getwd(const char *wd)
|
|||||||
{
|
{
|
||||||
val = g_home;
|
val = g_home;
|
||||||
}
|
}
|
||||||
|
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -134,6 +135,7 @@ static inline char *nsh_getdirpath(FAR struct nsh_vtbl_s *vtbl,
|
|||||||
{
|
{
|
||||||
nsh_output(vtbl, g_fmtcmdoutofmemory, "nsh_getdirpath");
|
nsh_output(vtbl, g_fmtcmdoutofmemory, "nsh_getdirpath");
|
||||||
}
|
}
|
||||||
|
|
||||||
return alloc;
|
return alloc;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -176,7 +178,7 @@ FAR char *nsh_getfullpath(FAR struct nsh_vtbl_s *vtbl,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Get the path to the current working directory */
|
/* Get the path to the current working directory */
|
||||||
|
|
||||||
wd = nsh_getcwd();
|
wd = nsh_getcwd();
|
||||||
|
|
||||||
/* Fake the '.' directory */
|
/* Fake the '.' directory */
|
||||||
@ -261,6 +263,7 @@ int cmd_cd(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
|||||||
{
|
{
|
||||||
nsh_freefullpath(fullpath);
|
nsh_freefullpath(fullpath);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -283,6 +286,7 @@ int cmd_echo(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
|||||||
{
|
{
|
||||||
nsh_output(vtbl, "%s ", argv[i]);
|
nsh_output(vtbl, "%s ", argv[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
nsh_output(vtbl, "\n");
|
nsh_output(vtbl, "\n");
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
@ -315,6 +319,7 @@ int cmd_set(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
|||||||
{
|
{
|
||||||
nsh_output(vtbl, g_fmtcmdfailed, argv[0], "setenv", NSH_ERRNO);
|
nsh_output(vtbl, g_fmtcmdfailed, argv[0], "setenv", NSH_ERRNO);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -333,6 +338,7 @@ int cmd_unset(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
|||||||
{
|
{
|
||||||
nsh_output(vtbl, g_fmtcmdfailed, argv[0], "unsetenv", NSH_ERRNO);
|
nsh_output(vtbl, g_fmtcmdfailed, argv[0], "unsetenv", NSH_ERRNO);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user