This is the mail archive of the
cygwin
mailing list for the Cygwin project.
[Bug] bash' read builtin command behaves differently on '\r' (4.3.33)
- From: Mikhail Usenko <mikeus at nm dot ru>
- To: cygwin at cygwin dot com
- Date: Thu, 14 May 2015 22:32:11 +0300
- Subject: [Bug] bash' read builtin command behaves differently on '\r' (4.3.33)
- Authentication-results: sourceware.org; auth=none
Cygwin version: 2.0.2-1
[linux]$ bash --version
GNU bash, version 4.3.33(1)-release (i686-redhat-linux-gnu)
[cygwin]$ bash --version
GNU bash, version 4.3.33(1)-release (x86_64-unknown-cygwin)
Testcase:
[linux]$ echo -ne "\r\n" | { read t; echo "$t"; } | od -A n -t x1
0d 0a
[cygwin]$ echo -ne "\r\n" | { read t; echo "$t"; } | od -A n -t x1
0a
But then, the pipe itself is OK:
[cygwin]$ echo -e "\r" | od -A n -t x1
0d 0a
--
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple