Subject: bin/4020: Globbing error in /bin/sh
To: None <gnats-bugs@gnats.netbsd.org>
From: None <ian.dall@dsto.defence.gov.au>
List: netbsd-bugs
Date: 08/20/1997 23:35:14
>Number: 4020
>Category: bin
>Synopsis: Globbing error in /bin/sh
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Aug 20 07:50:01 1997
>Last-Modified:
>Originator: Ian Dall
>Organization:
>Release: 1.2
>Environment:
System: NetBSD sibyl.chez-dall.org.au 1.2G NetBSD 1.2G (SIBYL) #0: Thu Jul 3 20:33:43 CST 1997 ian@sibyl.chez-dall.org.au:/usr3/netbsd-1.2/lsrc/sys/arch/pc532/compile/SIBYL pc532
>Description:
/bin/sh does not always pattern match correctly
>How-To-Repeat:
Type:
/bin/sh
arg='&foo'
case "$arg" in
*[\[\]\&]*)
quote_arg="'$arg'"
;;
esac
echo $quote_arg
This outputs just a new line. It should output '&foo'.
>Fix:
None known
>Audit-Trail:
>Unformatted: