aboutsummaryrefslogtreecommitdiff
path: root/libbb/lineedit.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r--libbb/lineedit.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 18664b8c1..f7faf4639 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -686,7 +686,11 @@ static int path_parse(char ***p, int flags)
686 tmp = (char*)pth; 686 tmp = (char*)pth;
687 npth = 1; /* path component count */ 687 npth = 1; /* path component count */
688 while (1) { 688 while (1) {
689#if ENABLE_PLATFORM_MINGW32
690 tmp = next_path_sep(tmp);
691#else
689 tmp = strchr(tmp, ':'); 692 tmp = strchr(tmp, ':');
693#endif
690 if (!tmp) 694 if (!tmp)
691 break; 695 break;
692 if (*++tmp == '\0') 696 if (*++tmp == '\0')
@@ -698,7 +702,11 @@ static int path_parse(char ***p, int flags)
698 res[0] = tmp = xstrdup(pth); 702 res[0] = tmp = xstrdup(pth);
699 npth = 1; 703 npth = 1;
700 while (1) { 704 while (1) {
705#if ENABLE_PLATFORM_MINGW32
706 tmp = next_path_sep(tmp);
707#else
701 tmp = strchr(tmp, ':'); 708 tmp = strchr(tmp, ':');
709#endif
702 if (!tmp) 710 if (!tmp)
703 break; 711 break;
704 *tmp++ = '\0'; /* ':' -> '\0' */ 712 *tmp++ = '\0'; /* ':' -> '\0' */
@@ -1893,6 +1901,7 @@ int FAST_FUNC read_line_input(const char *prompt, char *command, int maxsize, li
1893 1901
1894 INIT_S(); 1902 INIT_S();
1895 1903
1904#if !ENABLE_PLATFORM_MINGW32
1896 if (tcgetattr(STDIN_FILENO, &initial_settings) < 0 1905 if (tcgetattr(STDIN_FILENO, &initial_settings) < 0
1897 || !(initial_settings.c_lflag & ECHO) 1906 || !(initial_settings.c_lflag & ECHO)
1898 ) { 1907 ) {
@@ -1906,6 +1915,7 @@ int FAST_FUNC read_line_input(const char *prompt, char *command, int maxsize, li
1906 DEINIT_S(); 1915 DEINIT_S();
1907 return len; 1916 return len;
1908 } 1917 }
1918#endif
1909 1919
1910 init_unicode(); 1920 init_unicode();
1911 1921