From c6737e7500e71b3122e336a64b1fe1bd74399292 Mon Sep 17 00:00:00 2001 From: Nguyễn Thái Ngọc Duy Date: Wed, 14 Apr 2010 00:41:42 +0200 Subject: win32: ash: preadbuffer(): accept \r\n as line ending MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nguyễn Thái Ngọc Duy --- shell/ash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell') diff --git a/shell/ash.c b/shell/ash.c index 85d8f18a5..da3b6d031 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -9573,7 +9573,7 @@ preadbuffer(void) more--; c = *q; - if (c == '\0') { + if (c == '\0' || (ENABLE_PLATFORM_MINGW32 && c == '\r')) { memmove(q, q + 1, more); } else { q++; -- cgit v1.2.3-55-g6feb