summaryrefslogtreecommitdiff
path: root/components/finsh
diff options
context:
space:
mode:
authorGrissiom <[email protected]>2013-09-26 11:50:28 +0800
committerGrissiom <[email protected]>2013-09-26 11:50:28 +0800
commitdf4e8ff060fc2d3f6092df0e9ba75ffba0650a1e (patch)
tree7077d3617a92d79d86a06062cb7a5f4aef1fa682 /components/finsh
parent05651e7c662139a1d56c6ee0d859ae190346b314 (diff)
msh: only export cd/pwd when DFS_USING_WORKDIR is set
Diffstat (limited to 'components/finsh')
-rw-r--r--components/finsh/msh_cmd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/finsh/msh_cmd.c b/components/finsh/msh_cmd.c
index fac90479c8..cffb374c2e 100644
--- a/components/finsh/msh_cmd.c
+++ b/components/finsh/msh_cmd.c
@@ -136,6 +136,7 @@ int cmd_rm(int argc, char** argv)
}
FINSH_FUNCTION_EXPORT_ALIAS(cmd_rm, __cmd_rm, "Remove (unlink) the FILE(s).");
+#ifdef DFS_USING_WORKDIR
int cmd_cd(int argc, char** argv)
{
if (argc == 1)
@@ -157,6 +158,7 @@ int cmd_pwd(int argc, char** argv)
return 0;
}
FINSH_FUNCTION_EXPORT_ALIAS(cmd_pwd, __cmd_pwd, Print the name of the current working directory.);
+#endif
int cmd_mkdir(int argc, char** argv)
{