This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: [ANNOUNCEMENT] Updated: bash-4.3.39-2
- From: Mikhail Usenko <mikeus at nm dot ru>
- To: cygwin at cygwin dot com
- Date: Thu, 4 Jun 2015 12:51:54 +0300
- Subject: Re: [ANNOUNCEMENT] Updated: bash-4.3.39-2
- Authentication-results: sourceware.org; auth=none
- References: <announce dot 556EF85C dot 3000809 at redhat dot com>
Eric Blake (cygwin) <...> wrote:
> 4.3.39-2
Hello, Eric.
It has the same issue as in the previous version:
eating one \r from the odd numbered chains of the \r.
bash-4.3.39-2
-------------
$ echo -ne "\r\n" | { read t; echo "$t"; } | od -tx1
0000000 0a
0000001
$ echo -ne "\r\r\n" | { read t; echo "$t"; } | od -tx1
0000000 0d 0d 0a
0000003
$ echo -ne "\r\r\r\n" | { read t; echo "$t"; } | od -tx1
0000000 0d 0d 0a
0000003
$ echo -ne "\r\r\r\r\n" | { read t; echo "$t"; } | od -tx1
0000000 0d 0d 0d 0d 0a
0000005
$ echo -ne "\r\r\r\r\r\n" | { read t; echo "$t"; } | od -tx1
0000000 0d 0d 0d 0d 0a
0000005
$ echo -ne "\r\r\r\r" | { read t; echo "$t"; } | od -tx1
0000000 0d 0d 0d 0d 0a
0000005
$ echo -ne "\r\r\r\r\r" | { read t; echo "$t"; } | od -tx1
0000000 0d 0d 0d 0d 0a
0000005
bash-4.3.33-1
-------------
$ echo -ne "\r\n" | { read t; echo "$t"; } | od -tx1
0000000 0a
0000001
$ echo -ne "\r\r\n" | { read t; echo "$t"; } | od -tx1
0000000 0d 0d 0a
0000003
$ echo -ne "\r\r\r\n" | { read t; echo "$t"; } | od -tx1
0000000 0d 0d 0a
0000003
$ echo -ne "\r\r\r\r\n" | { read t; echo "$t"; } | od -tx1
0000000 0d 0d 0d 0d 0a
0000005
$ echo -ne "\r\r\r\r\r\n" | { read t; echo "$t"; } | od -tx1
0000000 0d 0d 0d 0d 0a
0000005
$ echo -ne "\r\r\r\r" | { read t; echo "$t"; } | od -tx1
0000000 0d 0d 0d 0d 0a
0000005
$ echo -ne "\r\r\r\r\r" | { read t; echo "$t"; } | od -tx1
0000000 0d 0d 0d 0d 0a
0000005
--
--
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