diff options
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r-- | libbb/lineedit.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index dc90846f9..9a04c38bf 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -564,7 +564,11 @@ static int path_parse(char ***p, int flags) | |||
564 | tmp = (char*)pth; | 564 | tmp = (char*)pth; |
565 | npth = 1; /* path component count */ | 565 | npth = 1; /* path component count */ |
566 | while (1) { | 566 | while (1) { |
567 | #if ENABLE_PLATFORM_MINGW32 | ||
568 | tmp = next_path_sep(tmp); | ||
569 | #else | ||
567 | tmp = strchr(tmp, ':'); | 570 | tmp = strchr(tmp, ':'); |
571 | #endif | ||
568 | if (!tmp) | 572 | if (!tmp) |
569 | break; | 573 | break; |
570 | if (*++tmp == '\0') | 574 | if (*++tmp == '\0') |
@@ -576,7 +580,11 @@ static int path_parse(char ***p, int flags) | |||
576 | res[0] = tmp = xstrdup(pth); | 580 | res[0] = tmp = xstrdup(pth); |
577 | npth = 1; | 581 | npth = 1; |
578 | while (1) { | 582 | while (1) { |
583 | #if ENABLE_PLATFORM_MINGW32 | ||
584 | tmp = next_path_sep(tmp); | ||
585 | #else | ||
579 | tmp = strchr(tmp, ':'); | 586 | tmp = strchr(tmp, ':'); |
587 | #endif | ||
580 | if (!tmp) | 588 | if (!tmp) |
581 | break; | 589 | break; |
582 | *tmp++ = '\0'; /* ':' -> '\0' */ | 590 | *tmp++ = '\0'; /* ':' -> '\0' */ |
@@ -1781,6 +1789,7 @@ int FAST_FUNC read_line_input(const char *prompt, char *command, int maxsize, li | |||
1781 | 1789 | ||
1782 | INIT_S(); | 1790 | INIT_S(); |
1783 | 1791 | ||
1792 | #if !ENABLE_PLATFORM_MINGW32 | ||
1784 | if (tcgetattr(STDIN_FILENO, &initial_settings) < 0 | 1793 | if (tcgetattr(STDIN_FILENO, &initial_settings) < 0 |
1785 | || !(initial_settings.c_lflag & ECHO) | 1794 | || !(initial_settings.c_lflag & ECHO) |
1786 | ) { | 1795 | ) { |
@@ -1794,6 +1803,7 @@ int FAST_FUNC read_line_input(const char *prompt, char *command, int maxsize, li | |||
1794 | DEINIT_S(); | 1803 | DEINIT_S(); |
1795 | return len; | 1804 | return len; |
1796 | } | 1805 | } |
1806 | #endif | ||
1797 | 1807 | ||
1798 | init_unicode(); | 1808 | init_unicode(); |
1799 | 1809 | ||