diff options
Diffstat (limited to '')
-rw-r--r-- | libbb/lineedit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 4f68547eb..c06b104ff 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -2151,7 +2151,11 @@ static void parse_and_put_prompt(const char *prmt_ptr) | |||
2151 | char *after_home_user; | 2151 | char *after_home_user; |
2152 | 2152 | ||
2153 | /* /home/user[/something] -> ~[/something] */ | 2153 | /* /home/user[/something] -> ~[/something] */ |
2154 | #if !ENABLE_PLATFORM_MINGW32 | ||
2154 | after_home_user = is_prefixed_with(cwd_buf, home); | 2155 | after_home_user = is_prefixed_with(cwd_buf, home); |
2156 | #else | ||
2157 | after_home_user = is_prefixed_with_case(cwd_buf, home); | ||
2158 | #endif | ||
2155 | if (after_home_user | 2159 | if (after_home_user |
2156 | && (*after_home_user == '/' || *after_home_user == '\0') | 2160 | && (*after_home_user == '/' || *after_home_user == '\0') |
2157 | ) { | 2161 | ) { |