Bug 150030 - app-shells/dash-0.5.3.3 doesn't support named classes (eg. [:digit:]) with negation - patch from upstream attached
Bug#: 150030 Product:  Gentoo Linux Version: 2006.1 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: maintainer-needed@gentoo.org Reported By: askwar@digitalprojects.com
Component: Applications
URL: 
Summary: app-shells/dash-0.5.3.3 doesn't support named classes (eg. [:digit:]) with negation - patch from upstream attached
Keywords:  
Status Whiteboard: 
Opened: 2006-10-04 01:06 0000
Description:   Opened: 2006-10-04 01:06 0000
With dash, when I do "ls [![:digit:]*", dash will also show files starting with
a numeral:

$ ls -la
insgesamt 0
drwxr-xr-x 2 alexander alexander  80  2. Oct 19:48 .
drwxrwxrwt 7 root      root      220  2. Oct 19:47 ..
-rw-r--r-- 1 alexander alexander   0  2. Oct 19:47 42
-rw-r--r-- 1 alexander alexander   0  2. Oct 19:48 wort
$ ls -la [![:digit:]]*
-rw-r--r-- 1 alexander alexander 0  2. Oct 19:47 42
-rw-r--r-- 1 alexander alexander 0  2. Oct 19:48 wort

This should not happen - and on bash, it doesn't happen.

Attached patch fixes this issue - I got this from upstream (Herbert Xu):

That's definitely a bug.  I've fixed it in the git tree with
the following patch.  Thanks for pointing this out.

------- Comment #1 From Alexander Skwar 2006-10-04 01:07:50 0000 -------
Created an attachment (id=98742) [details]
dash-0.5.3.3-negation-named-class.patch

With this patch applied, things like [![:digit:]] work as they are supposed to.

------- Comment #2 From Emanuele Giaquinta (RETIRED) 2006-10-09 08:19:38 0000 -------
In cvs, thanks.