Avoid bashism in data format test
authorHilko Bengen <bengen@debian.org>
Sat, 9 Jan 2021 12:08:28 +0000 (13:08 +0100)
committerHilko Bengen <bengen@debian.org>
Mon, 25 Oct 2021 19:37:24 +0000 (20:37 +0100)
Gbp-Pq: Name 0006-Avoid-bashism-in-data-format-test.patch

tests/test-data-format.sh

index 5ad1f59a2b9c433b82613e02690ad345cd30875e..9d424918848be89039c5c1d3abae888efc2376e5 100755 (executable)
@@ -254,7 +254,7 @@ do_test '<( for i in `seq 0 7`; do printf "%04d" $i; done )' \
         'b"00000001000200030004000500060007"'
 do_test '<( i=0
                 while :; do
-                    printf "%04d" $((i++))
+                    printf "%04d" $i; i=$((i+1))
                 done )[:65]' \
         'b"00000001000200030004000500060007000800090010001100120013001400150"'