This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ANNOUNCEMENT] Updated: bash-4.3.39-2


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]