Subject: bin/33775: /bin/sh doesn't accept "(" before case patterns
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 06/20/2006 11:00:01
>Number: 33775
>Category: bin
>Synopsis: /bin/sh doesn't accept "(" before case patterns
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Jun 20 11:00:00 +0000 2006
>Originator: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release: NetBSD 3.99.20
>Organization:
>Environment:
System: NetBSD kaeru 3.99.20 NetBSD 3.99.20 (build.kaeru.xen.nodebug.work) #10: Wed May 24 20:17:21 JST 2006 takashi@kaeru:/usr/home/takashi/work/kernel/build.kaeru.xen.nodebug.work i386
Architecture: i386
Machine: i386
>Description:
our /bin/sh doesn't allow "(" before case patterns while susv3 and
other major shells seem to allow it.
$ case a in *) echo A;esac
A
$ case a in (*) echo A;esac
Syntax error: word unexpected (expecting ")")
>How-To-Repeat:
try to use git. (http://www.kernel.org/pub/software/scm/git/)
in particular, try git-fetch.
>Fix:
>Unformatted: