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

Fix t4201: accidental arithmetic expansion

From
Alex Riesen <raa.lkml@gmail.com>
Date
Apr 13, 2007, 20:13 UTC
Message-ID
<20070413201310.GA750@steel.home>
instead of embedded subshell. It actually breaks here (dash as /bin/sh):
t4201-shortlog.sh: 27: Syntax error: Missing '))'
FATAL: Unexpected exit with code 2
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
 t/t4201-shortlog.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/t/t4201-shortlog.sh b/t/t4201-shortlog.sh
index 321429c..c27e39c 100644
--- a/t/t4201-shortlog.sh
+++ b/t/t4201-shortlog.sh
@@ -11,7 +11,7 @@ test_description='git-shortlog
 echo 1 > a1
 git add a1
 tree=$(git write-tree)
-commit=$((echo "Test"; echo) | git commit-tree $tree)
+commit=$( (echo "Test"; echo) | git commit-tree $tree )
 git update-ref HEAD $commit
 
 echo 2 > a1
-- 
1.5.1.130.g0ea6d
Message 1 of 1 in “Fix t4201: accidental arithmetic expansion”
  1. Alex RiesenApr 13, 2007

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.