summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 05bb5a2)
raw | patch | inline | side by side (parent: 05bb5a2)
author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | |
Tue, 21 Dec 2010 18:50:47 +0000 (18:50 +0000) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 21 Dec 2010 20:26:21 +0000 (12:26 -0800) |
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 <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3419-rebase-patch-id.sh | patch | blob | history |
index 1aee4835105afa8658536120892b63580b36f462..bd8efaf005a9708f153ea873850acca994c64f29 100755 (executable)
-#!/bin/bash
+#!/bin/sh
test_description='git rebase - test patch id computation'
then
echo "$x"
fi
- i=$(((i+1) % 10))
+ i=$((($i+1) % 10))
done < "$1" > "$1.new"
mv -f "$1.new" "$1"
}