Subject: /bin/sh and case and (*^*)
To: None <tech-userlevel@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-userlevel
Date: 04/28/2006 15:12:46
On NetBSD 3.99.15, I saw an error like:
/usr/pkg/bin/git-fetch: 219: Syntax error: word unexpected (expecting ")")
The error was here:
case "$name" in
(*^*) continue ;;
esac
Changing to /bin/ksh to run this continued fine. (I don't know if it works
though since I am just beginning using GIT).
I haven't seen a case pattern start with a open parenthesis before. Is
this okay?
If so, should /bin/sh support it?
Jeremy C. Reed
p.s. I am update for wip/scmgit to commit.