Re: [Bug] bash' read builtin command behaves differently on '\r' (4.3.33)

2015-09-24 Thread Eric Blake
On 05/14/2015 01:32 PM, Mikhail Usenko wrote: > > 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

Re: [Bug] bash' read builtin command behaves differently on '\r' (4.3.33)

2015-05-14 Thread Eric Blake
On 05/14/2015 02:18 PM, Mikhail Usenko wrote: > Also when a bash script is launched from an external program > with connected stdio from/to the program using a UNIX domain > socket generated by socketpair() the read builtin works OK. Thanks for the additional information. I can indeed duplicate th

Re: [Bug] bash' read builtin command behaves differently on '\r' (4.3.33)

2015-05-14 Thread Mikhail Usenko
Also when a bash script is launched from an external program with connected stdio from/to the program using a UNIX domain socket generated by socketpair() the read builtin works OK. -- -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Docume

Re: [Bug] bash' read builtin command behaves differently on '\r' (4.3.33)

2015-05-14 Thread Mikhail Usenko
On Thu, 14 May 2015 13:53:38 -0600 Eric Blake <...> wrote: > > Umm, are you sure you haven't turned on the igncr shell option in your > cygwin environment? > $ set -o allexport off braceexpand on emacs on errexit off errtraceoff functrace off hashall

Re: [Bug] bash' read builtin command behaves differently on '\r' (4.3.33)

2015-05-14 Thread Eric Blake
On 05/14/2015 01:32 PM, Mikhail Usenko wrote: > > 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

[Bug] bash' read builtin command behaves differently on '\r' (4.3.33)

2015-05-14 Thread Mikhail Usenko
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