]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] tests: fix unportable $((...)) usage
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 21 Jul 2012 11:18:02 +0000 (13:18 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 21 Jul 2012 11:20:15 +0000 (13:20 +0200)
* 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 <stefano.lattarini@gmail.com>
t/longline.sh

index 2536846ea6c973ab40e065d524d8a2f09da92bdd..25acc675fc99aa7b662badc4251ba5aa2ea609e5 100755 (executable)
@@ -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