Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 150030 - app-shells/dash-0.5.3.3 doesn't support named classes (eg. [:digit:]) with negation - patch from upstream attached
Summary: app-shells/dash-0.5.3.3 doesn't support named classes (eg. [:digit:]) with ne...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-04 01:06 UTC by Alexander Skwar
Modified: 2006-10-09 08:19 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dash-0.5.3.3-negation-named-class.patch (dash-0.5.3.3-negation-named-class.patch,381 bytes, patch)
2006-10-04 01:07 UTC, Alexander Skwar
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Skwar 2006-10-04 01:06:59 UTC
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 Alexander Skwar 2006-10-04 01:07:50 UTC
Created attachment 98742 [details, diff]
dash-0.5.3.3-negation-named-class.patch

With this patch applied, things like [![:digit:]] work as they are supposed to.
Comment 2 Emanuele Giaquinta (RETIRED) gentoo-dev 2006-10-09 08:19:38 UTC
In cvs, thanks.