From deae0c7bf351969e55f09a540a04dca1c4752b36 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Mon, 6 Feb 2012 14:17:09 +0000 Subject: Skip carriage return in read builtin command --- shell/shell_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/shell_common.c b/shell/shell_common.c index 0b9d4ebe6..2d5c0db0f 100644 --- a/shell/shell_common.c +++ b/shell/shell_common.c @@ -175,7 +175,7 @@ shell_builtin_read(void FAST_FUNC (*setvar)(const char *name, const char *val), break; } c = buffer[bufpos]; - if (c == '\0') + if (c == '\0' || (ENABLE_PLATFORM_MINGW32 && c == '\r')) continue; if (backslash) { backslash = 0; -- cgit v1.2.3-55-g6feb