mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-12 07:55:42 +00:00
README and other cosmetic updates
This commit is contained in:
parent
7ca7ae9fd6
commit
dfeb2b1910
1 changed files with 7 additions and 1 deletions
|
|
@ -95,6 +95,7 @@ static inline FAR const char *nsh_getwd(const char *wd)
|
|||
{
|
||||
val = g_home;
|
||||
}
|
||||
|
||||
return val;
|
||||
}
|
||||
#endif
|
||||
|
|
@ -134,6 +135,7 @@ static inline char *nsh_getdirpath(FAR struct nsh_vtbl_s *vtbl,
|
|||
{
|
||||
nsh_output(vtbl, g_fmtcmdoutofmemory, "nsh_getdirpath");
|
||||
}
|
||||
|
||||
return alloc;
|
||||
}
|
||||
|
||||
|
|
@ -176,7 +178,7 @@ FAR char *nsh_getfullpath(FAR struct nsh_vtbl_s *vtbl,
|
|||
}
|
||||
|
||||
/* Get the path to the current working directory */
|
||||
|
||||
|
||||
wd = nsh_getcwd();
|
||||
|
||||
/* Fake the '.' directory */
|
||||
|
|
@ -261,6 +263,7 @@ int cmd_cd(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
|||
{
|
||||
nsh_freefullpath(fullpath);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
#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, "\n");
|
||||
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);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
#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);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue