Bug#243885: Bug#240887: Package building problem.

2004-04-18 Thread Herbert Xu
On Sat, Apr 17, 2004 at 10:44:27PM +0200, Kurt Roeckx wrote: If I understand Herbert Xu correctly, he's saying the regex should be written as: *[][~#$^*(){}\|;?]* No, the way it's written currently is fine. It's glibc's fnmatch(3) implementation that's broken. Cheers, -- Debian GNU/Linux

Bug#243885: Bug#240887: Package building problem.

2004-04-18 Thread Herbert Xu
Kurt Roeckx [EMAIL PROTECTED] wrote: Not quite. In the context of case patterns and fnmatch, quote removal is not performed. You mean fnmatch() gets called with the FNM_NOESCAPE flag? No. I mean that on the input path to fnmatch(), the escape characters have to be there. -- Debian

Bug#243885: Bug#240887: Package building problem.

2004-04-18 Thread Herbert Xu
On Sat, Apr 17, 2004 at 10:44:27PM +0200, Kurt Roeckx wrote: If I understand Herbert Xu correctly, he's saying the regex should be written as: *[][~#$^*(){}\|;?]* No, the way it's written currently is fine. It's glibc's fnmatch(3) implementation that's broken. Cheers, -- Debian GNU/Linux

Bug#243885: Bug#240887: Package building problem.

2004-04-18 Thread Herbert Xu
Kurt Roeckx [EMAIL PROTECTED] wrote: Not quite. In the context of case patterns and fnmatch, quote removal is not performed. You mean fnmatch() gets called with the FNM_NOESCAPE flag? No. I mean that on the input path to fnmatch(), the escape characters have to be there. -- Debian

Bug#243885: Bug#240887: Package building problem.

2004-04-17 Thread Kurt Roeckx
On Sat, Apr 17, 2004 at 12:14:39PM -0700, Ben Pfaff wrote: Herbert Xu [EMAIL PROTECTED] writes: Accordingly, I believe that the pattern in your example means backslash, followed by a, followed by closing square bracket, not what you think it means. You're quite right. This is

Bug#243885: Bug#240887: Package building problem.

2004-04-17 Thread Ben Pfaff
Herbert Xu [EMAIL PROTECTED] writes: Accordingly, I believe that the pattern in your example means backslash, followed by a, followed by closing square bracket, not what you think it means. You're quite right. This is reaffirmed by the POSIX document for basic regular expressions, which is

Bug#243885: Bug#240887: Package building problem.

2004-04-17 Thread Kurt Roeckx
On Sat, Apr 17, 2004 at 12:14:39PM -0700, Ben Pfaff wrote: Herbert Xu [EMAIL PROTECTED] writes: Accordingly, I believe that the pattern in your example means backslash, followed by a, followed by closing square bracket, not what you think it means. You're quite right. This is

Re: Bug#240887: Package building problem.

2004-04-16 Thread Kurt Roeckx
On Fri, Apr 16, 2004 at 12:54:03PM +1000, Herbert Xu wrote: On Fri, Apr 16, 2004 at 08:09:05AM +1000, herbert wrote: On Thu, Apr 15, 2004 at 03:10:58PM +0100, Colin Watson wrote: Accordingly, I believe that the pattern in your example means backslash, followed by a, followed by

Bug#243885: Bug#240887: Package building problem.

2004-04-16 Thread Herbert Xu
On Fri, Apr 16, 2004 at 08:49:14PM +0200, Kurt Roeckx wrote: After reading all that you have to get confused about what [\[\]\\] means. At the highest level it says that the '\' should be discarded, Not quite. In the context of case patterns and fnmatch, quote removal is not performed. --

Bug#243885: Bug#240887: Package building problem.

2004-04-16 Thread Kurt Roeckx
On Sat, Apr 17, 2004 at 07:58:21AM +1000, Herbert Xu wrote: On Fri, Apr 16, 2004 at 08:49:14PM +0200, Kurt Roeckx wrote: After reading all that you have to get confused about what [\[\]\\] means. At the highest level it says that the '\' should be discarded, Not quite. In the context of

Processed: Re: Bug#240887: Package building problem.

2004-04-16 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]: reopen 243885 Bug#243885: fnmatch breaks on [\]] Bug reopened, originator not changed. reassign 240887 dash Bug#240887: backslashes are literal in shell bracket expressions Bug reassigned from package `tetex-bin' to `dash'. retitle 240887 fnmatch(3)

Re: Bug#240887: Package building problem.

2004-04-16 Thread Kurt Roeckx
On Fri, Apr 16, 2004 at 12:54:03PM +1000, Herbert Xu wrote: On Fri, Apr 16, 2004 at 08:09:05AM +1000, herbert wrote: On Thu, Apr 15, 2004 at 03:10:58PM +0100, Colin Watson wrote: Accordingly, I believe that the pattern in your example means backslash, followed by a, followed by

Bug#243885: Bug#240887: Package building problem.

2004-04-16 Thread Herbert Xu
On Fri, Apr 16, 2004 at 08:49:14PM +0200, Kurt Roeckx wrote: After reading all that you have to get confused about what [\[\]\\] means. At the highest level it says that the '\' should be discarded, Not quite. In the context of case patterns and fnmatch, quote removal is not performed. --

Bug#243885: Bug#240887: Package building problem.

2004-04-16 Thread Kurt Roeckx
On Sat, Apr 17, 2004 at 07:58:21AM +1000, Herbert Xu wrote: On Fri, Apr 16, 2004 at 08:49:14PM +0200, Kurt Roeckx wrote: After reading all that you have to get confused about what [\[\]\\] means. At the highest level it says that the '\' should be discarded, Not quite. In the context of

Re: Bug#240887: Package building problem.

2004-04-15 Thread Herbert Xu
clone 240887 -1 retitle -1 fnmatch breaks on [\]] submitter -1 [EMAIL PROTECTED] reassign -1 libc6 tags 240887 pending quit On Wed, Apr 14, 2004 at 01:59:01PM +0200, Frank K?ster wrote: This is how dash calls it in _some_ subdirectories: configuring in tetex running /bin/sh ./configure

Processed: Re: Bug#240887: Package building problem.

2004-04-15 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]: clone 240887 -1 Bug#240887: dash expands variable between '...' Bug 240887 cloned as bug 243885. retitle -1 fnmatch breaks on [\]] Bug#243885: dash expands variable between '...' Changed Bug title. submitter -1 [EMAIL PROTECTED] Bug#243885: fnmatch

Re: Bug#240887: Package building problem.

2004-04-15 Thread Colin Watson
On Thu, Apr 15, 2004 at 09:40:05PM +1000, Herbert Xu wrote: On Wed, Apr 14, 2004 at 01:59:01PM +0200, Frank K?ster wrote: This is how dash calls it in _some_ subdirectories: configuring in tetex running /bin/sh ./configure --prefix=/usr --enable-ipc --without-dialog\

Processed: Re: Bug#240887: Package building problem.

2004-04-15 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]: reopen 243885 Bug#243885: fnmatch breaks on [\]] Bug reopened, originator not changed. reassign 240887 dash Bug#240887: backslashes are literal in shell bracket expressions Bug reassigned from package `tetex-bin' to `dash'. retitle 240887 fnmatch(3)

Re: Bug#240887: Package building problem.

2004-04-15 Thread Herbert Xu
clone 240887 -1 retitle -1 fnmatch breaks on [\]] submitter -1 [EMAIL PROTECTED] reassign -1 libc6 tags 240887 pending quit On Wed, Apr 14, 2004 at 01:59:01PM +0200, Frank K?ster wrote: This is how dash calls it in _some_ subdirectories: configuring in tetex running /bin/sh ./configure

Processed: Re: Bug#240887: Package building problem.

2004-04-15 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]: clone 240887 -1 Bug#240887: dash expands variable between '...' Bug 240887 cloned as bug 243885. retitle -1 fnmatch breaks on [\]] Bug#243885: dash expands variable between '...' Changed Bug title. submitter -1 [EMAIL PROTECTED] Bug#243885: fnmatch

Re: Bug#240887: Package building problem.

2004-04-15 Thread Colin Watson
On Thu, Apr 15, 2004 at 09:40:05PM +1000, Herbert Xu wrote: On Wed, Apr 14, 2004 at 01:59:01PM +0200, Frank K?ster wrote: This is how dash calls it in _some_ subdirectories: configuring in tetex running /bin/sh ./configure --prefix=/usr --enable-ipc --without-dialog\

Re: Bug#240887: Package building problem.

2004-04-15 Thread Herbert Xu
reopen 243885 reassign 240887 dash retitle 240887 fnmatch(3) is broken quit On Fri, Apr 16, 2004 at 08:09:05AM +1000, herbert wrote: On Thu, Apr 15, 2004 at 03:10:58PM +0100, Colin Watson wrote: Accordingly, I believe that the pattern in your example means backslash, followed by a,