From d335472a6631f1f30c23590a1764e804d0eb97a2 Mon Sep 17 00:00:00 2001 From: Nguyễn Thái Ngọc Duy Date: Thu, 23 Apr 2009 00:18:24 +1000 Subject: shell/ash: stop looking at \r (for CRLF ending) --- shell/ash.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'shell') diff --git a/shell/ash.c b/shell/ash.c index 316e1f4a9..cdbbeba33 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -8738,7 +8738,11 @@ preadbuffer(void) more--; c = *q; +#ifdef __MINGW32__ + if (!c || c == '\r') +#else if (!c) +#endif memmove(q, q + 1, more); else { q++; -- cgit v1.2.3-55-g6feb