[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
autoconf/225: autoconf/225: bad case pattern for ac_configure_args
From: |
flee |
Subject: |
autoconf/225: autoconf/225: bad case pattern for ac_configure_args |
Date: |
Wed, 1 Dec 2004 12:55:10 -0600 (CST) |
The following reply was made to PR autoconf/225; it has been noted by GNATS.
From: address@hidden
To: address@hidden,address@hidden
Cc:
Subject: autoconf/225: bad case pattern for ac_configure_args
Date: Fri, 13 Dec 2002 07:51:16 -0500
>Number: 225
>Category: autoconf
>Synopsis: bad case pattern for ac_configure_args
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: akim
>State: open
>Quarter:
>Keywords:
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Dec 13 07:51:16 -0500 2002
>Cases:
>Originator: address@hidden
>Release: 2.57
>Organization:
>Environment:
>Description:
in lib/autoconf/general.m4, around line 1156
there's a complex case pattern that includes
*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*
the intent of the code is to quote an arg so it can
be passed to a subdir invocation of configure correctly.
however, \] is the wrong way to include a ] inside []. it happens to work in
many shells, such as bash-2.05, but it doesn't work in netbsd-1.5's /bin/sh,
so the pattern fails to match,
and an arg that needs quoting doesn't get quoted.
the portable way is to make ] the first char
inside the [], like so:
*[]\[~\#\$\^\&\* ...
>How-To-Repeat:
>Fix:
Unknown
>Unformatted:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- autoconf/225: autoconf/225: bad case pattern for ac_configure_args,
flee <=