Subject: bin/36954: /bin/sh doesn't expand ${line%%/\**} correctly
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <rillig@NetBSD.org>
List: netbsd-bugs
Date: 09/09/2007 09:15:04
>Number: 36954
>Category: bin
>Synopsis: /bin/sh doesn't expand ${line%%/\**} correctly
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Sep 09 09:15:04 +0000 2007
>Originator: Roland Illig
>Release: 4.99.30
>Organization:
>Environment:
>Description:
The expression ${line%%/\**} should return the leading part of $line, cutting off the first occurrence of /* and everything that follows it.
Currently, the \* is not handled as specifying a * character, but is essentially equal to giving a plain * character.
>How-To-Repeat:
sh $NETBSDSRC/regress/bin/sh/expand.sh
>Fix: