mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-19 09:53:33 +08:00
[finsh]修复使用finsh_set_prompt重定向了msh提示符的名称后,路径功能没有的问题
This commit is contained in:
parent
c651f9e6c7
commit
584d06bd27
@ -101,9 +101,11 @@ const char *finsh_get_prompt(void)
|
||||
if (finsh_prompt_custom)
|
||||
{
|
||||
strncpy(finsh_prompt, finsh_prompt_custom, sizeof(finsh_prompt) - 1);
|
||||
return finsh_prompt;
|
||||
}
|
||||
strcpy(finsh_prompt, _MSH_PROMPT);
|
||||
else
|
||||
{
|
||||
strcpy(finsh_prompt, _MSH_PROMPT);
|
||||
}
|
||||
|
||||
#if defined(DFS_USING_POSIX) && defined(DFS_USING_WORKDIR)
|
||||
/* get current working directory */
|
||||
|
Loading…
x
Reference in New Issue
Block a user