author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | |
Tue, 21 Sep 2010 17:45:09 +0000 (18:45 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 27 Sep 2010 17:43:49 +0000 (10:43 -0700) | ||
commit | 4098f6717b8137493dddfc1a28a72b25769ed7bc | |
tree | 97ab408453dac14f7f5d245dc0dff3c1252d0d85 | tree | snapshot |
parent | 4af3fab06e41d031ccb2b948ddd7c73159dd9d49 | commit | diff |
t1503: Fix arithmetic expansion syntax error when using dash
On systems which have dash as /bin/sh, such as Ubuntu, the final
test (master@{n} for various n) fails with a syntax error while
processing an arithmetic expansion. The syntax error is caused by
using a bare name ('N') as a variable reference in the expression.
In order to avoid the syntax error, we spell the variable reference
as '$N' rather than simply 'N'.
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
On systems which have dash as /bin/sh, such as Ubuntu, the final
test (master@{n} for various n) fails with a syntax error while
processing an arithmetic expansion. The syntax error is caused by
using a bare name ('N') as a variable reference in the expression.
In order to avoid the syntax error, we spell the variable reference
as '$N' rather than simply 'N'.
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1503-rev-parse-verify.sh | diff | blob | history |