[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
read builtin ignores a byte after \r in bash-4.3-p42 in Cygwin
From: |
Жанна Целых |
Subject: |
read builtin ignores a byte after \r in bash-4.3-p42 in Cygwin |
Date: |
Sun, 20 Mar 2016 14:54:42 +1000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
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-^?...
- read builtin ignores a byte after \r in bash-4.3-p42 in Cygwin,
Жанна Целых <=