Skip to content
Snippets Groups Projects
Commit dfeb2b19 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

README and other cosmetic updates

parent 7ca7ae9f
No related branches found
No related tags found
No related merge requests found
...@@ -95,6 +95,7 @@ static inline FAR const char *nsh_getwd(const char *wd) ...@@ -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, ...@@ -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, ...@@ -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) ...@@ -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) ...@@ -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) ...@@ -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) ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment