README and other cosmetic updates

This commit is contained in:
Gregory Nutt 2014-01-04 08:38:05 -06:00
parent 7ca7ae9fd6
commit dfeb2b1910

View File

@ -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