Anonymous committed 00f66f0

t3419-*.sh: Fix arithmetic expansion syntax error

Some shells, for example dash versions older than 0.5.4, need to
spell a variable reference as '$N' rather than 'N' in an arithmetic
expansion. In order to avoid the syntax error, we change the
offending variable reference from 'i' to '$i' in function scramble.

There is nothing bash specific to this test script (and we shouldn't
have any bash dependent test). Fix its shebang line.

Signed-off-by: Ramsay Jones <>
Signed-off-by: Junio C Hamano <>

Comments (0)

Files changed (1)


 test_description='git rebase - test patch id computation'
 			echo "$x"
-		i=$(((i+1) % 10))
+		i=$((($i+1) % 10))
 	done < "$1" > "$"
 	mv -f "$" "$1"