Package: bash
Version: 2.05b-26
Severity: normal

The bash man page describes this construct:

              @(pattern-list)
                     Matches exactly one of the given patterns

But what it really seems it does is "match exactly one occurrence of any of the 
given patterns".

"Matches exactly one of the given patterns" seems like this:

[EMAIL PROTECTED]:/tmp$ mkdir foo
[EMAIL PROTECTED]:/tmp$ cd foo
[EMAIL PROTECTED]:/tmp/foo$ ls
[EMAIL PROTECTED]:/tmp/foo$ touch a
[EMAIL PROTECTED]:/tmp/foo$ touch ab
[EMAIL PROTECTED]:/tmp/foo$ ls @(a|a*)
a  ab
[EMAIL PROTECTED]:/tmp/foo$ 


should really just give 'ab' instead of both 'a' and 'ab', since 'a' matches 2 
patterns, not exactly one.


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages bash depends on:
ii  base-files              3.1.2            Debian base system miscellaneous f
ii  libc6                   2.3.2.ds1-22     GNU C Library: Shared libraries an
ii  libncurses5             5.4-4            Shared libraries for terminal hand
ii  passwd                  1:4.0.3-31sarge5 change and administer password and

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to