From: Stefano Lattarini Date: Sat, 21 Jul 2012 11:18:02 +0000 (+0200) Subject: [ng] tests: fix unportable $((...)) usage X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ce110a94aabb52b6756f4ff29c00414b56697f6;p=thirdparty%2Fautomake.git [ng] tests: fix unportable $((...)) usage * t/longline.sh: Use "$i", not bare "i", to reference the value of the shell variable 'i' in a $((...)) expression. Issue revealed by a failure with dash 0.5.2. Signed-off-by: Stefano Lattarini --- diff --git a/t/longline.sh b/t/longline.sh index 2536846ea..25acc675f 100755 --- a/t/longline.sh +++ b/t/longline.sh @@ -22,7 +22,7 @@ i=0 while test $i -lt 30; do echo some_very_very_long_variable_content_$i - i=$((i + 1)) + i=$(($i + 1)) done > t { echo "DUMMY =" && sed 's/^/DUMMY +=/' t; } > Makefile.am