Using the devel/ branch, with default options (simple ./configure), I found that *sourcing* such a script would cause bash to hang using 100% CPU. This does not happen using 4.2_p39.
> #!/bin/bash > shopt -s extglob > glob='@(|))' > for i in /tmp/!($glob); do echo $i; done [ bash-completion initialisation uses this kind of construct ] regards