From: Francis Daly Date: Thu, 29 Mar 2007 21:38:20 +0000 (+0100) Subject: git-quiltimport /bin/sh-ism fix X-Git-Tag: v1.5.1~17 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b275a0c9e742e4bbfed9794b1e477000440eaf6a;p=git.git git-quiltimport /bin/sh-ism fix Bryan Wu reported /usr/local/bin/git-quiltimport: 114: Syntax error: Missing '))' Most bourne-ish shells I have here accept x=$((echo x)|cat) but all bourne-ish shells I have here accept x=$( (echo x)|cat) because $(( might mean arithmetic expansion. Signed-off-by: Francis Daly Signed-off-by: Junio C Hamano --- diff --git a/git-quiltimport.sh b/git-quiltimport.sh index 08ac9bb72..edccd8275 100755 --- a/git-quiltimport.sh +++ b/git-quiltimport.sh @@ -115,7 +115,7 @@ for patch_name in $(cat "$QUILT_PATCHES/series" | grep -v '^#'); do if [ -z "$dry_run" ] ; then git-apply --index -C1 "$tmp_patch" && tree=$(git-write-tree) && - commit=$((echo "$SUBJECT"; echo; cat "$tmp_msg") | git-commit-tree $tree -p $commit) && + commit=$( (echo "$SUBJECT"; echo; cat "$tmp_msg") | git-commit-tree $tree -p $commit) && git-update-ref -m "quiltimport: $patch_name" HEAD $commit || exit 4 fi done