Producing the bug: tux@dell:~$ shopt -s extglob tux@dell:~$ shopt -u dotglob tux@dell:~$ ls -d *(.*) ls: cannot access *(.*): No such file or directory tux@dell:~$ touch '*(.*)' tux@dell:~$ ls -d *(.*) *(.*)
I think even if dotglob is unset *(.*) should still matches all dotfiles. Yongzhi --- 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../bash -I../bash/include -I../bash/lib -g -O2 -Wall uname output: Linux dell 3.0.0-13-generic #22-Ubuntu SMP Wed Nov 2 13:27:26 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux Machine Type: x86_64-pc-linux-gnu Bash Version: 4.2 Patch Level: 10 Release Status: release