Race condition in read -t

2015-08-28 Thread Oleg Popov
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: x86_64-pc-linux-gnu-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/s

\c-handling in $'-strings

2015-08-28 Thread Helmut Karlowski
Hello The bash-manual says: Words of the form $'string' are treated specially. The word expands to string, with backslash-escaped characters replaced as specified by the ANSI C standard. Backslash escape sequences, if present, are decoded as follows: ... \cxa control-x character

Problem with @Q

2015-08-28 Thread isabella parakiss
In the devel branch, setting IFS=\' seems to break @Q: $ arr=(a b c) $ echo ${arr[@]@Q} | sed -n l 'a' 'b' 'c'$ <- correct $ echo "${arr[@]@Q}" | sed -n l 'a' 'b' 'c'$ <- correct $ IFS=\' $ echo ${arr[@]@Q} | sed -n l a b c$