Re: 0xFF and read -N

2013-09-02 Thread Chet Ramey
On 8/31/13 3:13 PM, Stephane Chazelas wrote: > Bash Version: 4.2 > Patch Level: 45 > Release Status: release > > When called with the -N option, "read" seems to consider the byte 0xFF > as meaning EOF (well, not exactly since it doesn't set the exit status to > non-zero) Not quite: it interprets

0xFF and read -N

2013-08-31 Thread Stephane Chazelas
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKA