aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2009-04-23 00:18:24 +1000
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2009-04-23 04:44:44 +1000
commitd335472a6631f1f30c23590a1764e804d0eb97a2 (patch)
tree69dbbe214ed43175c854ae314c472093dec47d83 /shell
parentd82d217c11cd2827d707e6a08a4df35b0acfe3ad (diff)
downloadbusybox-w32-d335472a6631f1f30c23590a1764e804d0eb97a2.tar.gz
busybox-w32-d335472a6631f1f30c23590a1764e804d0eb97a2.tar.bz2
busybox-w32-d335472a6631f1f30c23590a1764e804d0eb97a2.zip
shell/ash: stop looking at \r (for CRLF ending)
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c4
1 files changed, 4 insertions, 0 deletions
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)
8738 more--; 8738 more--;
8739 c = *q; 8739 c = *q;
8740 8740
8741#ifdef __MINGW32__
8742 if (!c || c == '\r')
8743#else
8741 if (!c) 8744 if (!c)
8745#endif
8742 memmove(q, q + 1, more); 8746 memmove(q, q + 1, more);
8743 else { 8747 else {
8744 q++; 8748 q++;