summaryrefslogtreecommitdiff
path: root/apps/nshlib
diff options
context:
space:
mode:
Diffstat (limited to 'apps/nshlib')
-rw-r--r--apps/nshlib/nsh_envcmds.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/nshlib/nsh_envcmds.c b/apps/nshlib/nsh_envcmds.c
index 02c0ec02e..8ff65d3d5 100644
--- a/apps/nshlib/nsh_envcmds.c
+++ b/apps/nshlib/nsh_envcmds.c
@@ -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