diff options
| author | bernard <[email protected]> | 2014-11-01 21:52:26 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2014-11-01 21:52:26 +0800 |
| commit | a00cc57487f78629bf3aaa7c3c04708af6fa0800 (patch) | |
| tree | 9ff51facb280baa4d427da3ad05bf07b70782876 /components/finsh/shell.c | |
| parent | c7ee7f9858f2cc86d94a2eea8baacfc449865e9a (diff) | |
Prepare RT-Thread 1.2.3 release.
Diffstat (limited to 'components/finsh/shell.c')
| -rw-r--r-- | components/finsh/shell.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/finsh/shell.c b/components/finsh/shell.c index ae099e7e7c..5a6bfc1104 100644 --- a/components/finsh/shell.c +++ b/components/finsh/shell.c @@ -70,10 +70,11 @@ const char* finsh_get_prompt() #endif strcpy(finsh_prompt, _PROMPT); -#ifdef DFS_USING_WORKDIR +#if defined(RT_USING_DFS) && defined(DFS_USING_WORKDIR) /* get current working directory */ getcwd(&finsh_prompt[rt_strlen(finsh_prompt)], RT_CONSOLEBUF_SIZE - rt_strlen(finsh_prompt)); #endif + strcat(finsh_prompt, ">"); return finsh_prompt; |
