git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-fetch: Shell syntax fix for NetBSD

From
DSDennis Stosberg <dennis@stosberg.net>
Date
May 28, 2006, 20:45 UTC
Message-ID
<20060528204510.G51ab1cf8@leonov.stosberg.net>

NetBSD's default shell does not accept an opening parenthesis in a case switch.

$ ./git-fetch ./git-fetch: 219: Syntax error: word unexpected (expecting ")")

--- With this change applied to the next branch, all tests complete successfully on NetBSD 3.0 without having bash installed.

 git-fetch.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-fetch.sh b/git-fetch.sh
index 280f62e..b8092a6 100755
--- a/git-fetch.sh
+++ b/git-fetch.sh
@@ -216,7 +216,7 @@ then
 	          while read sha1 name
 		  do
 			case "$name" in
-			(*^*) continue ;;
+			*^*) continue ;;
 			esac
 		  	if git-check-ref-format "$name"
 			then
-- 
1.3.3.g3c38f
Next: Junio C Hamano
Message 1 of 3 in “git-fetch: Shell syntax fix for NetBSD”
  1. git-fetch: Shell syntax fix for NetBSDDennis Stosberg, May 28, 2006
  2. Junio C HamanoMay 28, 2006
  3. Dennis StosbergMay 28, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.