nullglob make unset on array member fail ?

2017-01-23 Thread admn ombres
$ x=(x); echo ${#x[@]}; shopt -s nullglob; unset x[0]; echo ${#x[@]} 1 1 $ x=(x); echo ${#x[@]}; shopt -u nullglob; unset x[0]; echo ${#x[@]} 1 0

declare output of process substitution after redirection.

2013-11-11 Thread admn ombres
i'm not sure this must be considered as a bug, but using bash 4.2.45 (end it seems to be the same in the devel branch) the output of : f1 () { y >& >(z) ; } f2 () { y &> >(z) ; } declare -f f1 f2 f1 () { x &>>(y) } f2 () { x &>>(y) } # look like a bug source <(declare -f f1 f2) -bash: /d