[ANNOUNCEMENT] Updated: bash-4.3.39-2
Mikhail Usenko
mikeus@nm.ru
Thu Jun 4 09:52:00 GMT 2015
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
More information about the Cygwin
mailing list