[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

*(.*) matches wrongly when dotglob unset

From: Yongzhi Pan
Subject: *(.*) matches wrongly when dotglob unset
Date: Tue, 29 Nov 2011 22:53:10 +0800

Producing the bug:

address@hidden:~$ shopt -s extglob
address@hidden:~$ shopt -u dotglob
address@hidden:~$ ls -d *(.*)
ls: cannot access *(.*): No such file or directory
address@hidden:~$ touch '*(.*)'
address@hidden:~$ ls -d *(.*)

I think even if dotglob is unset *(.*) should still matches all dotfiles.



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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]