[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bash-bug
Subject:    extglob problems
From:       Isabella Parakiss <izaberina () gmail ! com>
Date:       2016-03-23 22:15:08
Message-ID: 20160323221508.GA5643 () notebook ! homenet ! telecomitalia ! it
[Download RAW message or body]

Just wanted to report a couple of problems in 4.3.42 and the latest
devel version:

*?(/) followed by something makes it ignore the rest:
$ [[ a = a*?(/)b ]] && echo match
match

@(*|extglob) matches everything(?) but not always:
$ touch a b c .x .y .z
$ echo .!(|.)                     # correct
.x .y .z
$ echo *                          # correct
a b c
$ echo @(*|.!(|.))                # wrong, adds . and ..
. .. a b c .x .y .z
$ echo @(*|@(f))                  # ??
. .. a b c .x .y .z
$ echo @(*|@(ff))                 # ???
a b c

I wouldn't know where to start to fix them though...
-- 
xoxo iza


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic