Configuration Information:
Machine: i686
OS: cygwin
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash.exe' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='cygwin' -DCONF_MACHTYPE='i686-pc-cygwin'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash'
-DSHELL -DHAVE_CONFIG_H -DRECYCLES_PIDS -I.
-I/usr/src/bash-4.3.42-4.i686/src/bash-4.3
-I/usr/src/bash-4.3.42-4.i686/src/bash-4.3/include
-I/usr/src/bash-4.3.42-4.i686/src/bash-4.3/lib -DWORDEXP_OPTION -ggdb
-O2 -pipe -Wimplicit-function-declaration
-fdebug-prefix-map=/usr/src/bash-4.3.42-4.i686/build=/usr/src/debug/bash-4.3.42-4
-fdebug-prefix-map=/usr/src/bash-4.3.42-4.i686/src/bash-4.3=/usr/src/debug/bash-4.3.42-4
uname output: CYGWIN_NT-6.1 microsoft-win7 2.4.1(0.293/5/3) 2016-01-24
11:24 i686 Cygwin
Machine Type: i686-pc-cygwin
Bash Version: 4.3
Patch Level: 42
Release Status: release
Description:
In bash-4.3-p42 from Cygwin read builtin ignores some bytes
after CR-byte.
Repeat-By:
$ printf '...\r\xff...' | { read -r; printf %s "$REPLY"; } | cat -A
...^M...
$ env -i /bin/bash -c 'printf "...\r\xff..." | { read -r;
printf %s "$REPLY"; } | cat -A'
...^M...
In GNU/Linux and bash-4.3-p42 these commands output:
...^MM-^?...