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' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I. -I../. -I.././include -I.././lib -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall uname output: Linux zod 4.5.3-x86_64-linode67 #3 SMP Tue May 10 10:22:44 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux Machine Type: x86_64-pc-linux-gnu
Bash Version: 4.3 Patch Level: 11 Release Status: release Description: The read builtin does not appear to save partial reads to the variable when a timeout has occured. This is contrary to the documentation which states 'read saves any partial input read into the specified variable' https://www.gnu.org/software/bash/manual/html_node/Bash-Builtins.html#Bash-Builtins Perhaps this is just an error in the documentation. either way, should be fixed, right? A friend has tested this on 4.4.0(1)-rc2 as well. Repeat-By: read -N2 -t1 < <(printf x; sleep 2; printf y); echo "$REPLY" or { read -t1 a; read b; } < <(printf x; sleep 2; printf y); echo "<$a><$b>"