From: Johannes Schindelin Date: Wed, 6 Jun 2007 15:24:07 +0000 (+0100) Subject: filter-branch: use $(($i+1)) instead of $((i+1)) X-Git-Tag: v1.5.3-rc0~69^2~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c12764b8b7e004f84b1e685b76f2d662bee8e196;p=git.git filter-branch: use $(($i+1)) instead of $((i+1)) The expression $((i+1)) is not portable at all: even some bash versions do not grok it. So do not use it. Noticed by Jonas Fonseca. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- diff --git a/git-filter-branch.sh b/git-filter-branch.sh index 73e7c0100..2929925a0 100755 --- a/git-filter-branch.sh +++ b/git-filter-branch.sh @@ -339,7 +339,7 @@ test $commits -eq 0 && die "Found nothing to rewrite" i=0 while read commit; do - i=$((i+1)) + i=$(($i+1)) printf "$commit ($i/$commits) " git-read-tree -i -m $commit