OSDN Git Service

* tests/lha-test.in: `++' is invalid arithmetic operator on POSIX
authorarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Wed, 21 Aug 2002 16:14:15 +0000 (16:14 +0000)
committerarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Wed, 21 Aug 2002 16:14:15 +0000 (16:14 +0000)
shell, Ksh and early version of Bash.

* tests/lha-test13: ditto.

git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@502 6a8cc165-1e22-0410-a132-eb4e3f353aba

tests/lha-test.in
tests/lha-test13

index bc499c6..c886d04 100644 (file)
@@ -45,9 +45,10 @@ FILENAME=lha-test
 message testing to create/list/extract lha archive.
 
 typeset -i i=0
-while (( i++ < 100 ))
+while (( i < 100 ))
 do
     echo foo
+    ((i = i + 1))
 done > test-a
 sed 's/foo/bar/g' < test-a > test-b
 sed 's/foo/baz/g' < test-a > test-c
index 1d027ea..cb1abfe 100644 (file)
@@ -45,15 +45,17 @@ diff test-tmp-euc test-tmp-euc-d2/test-tmp-euc
                                                        check $? $LINENO
 
 i=0
-while ((i++ < 10))
+while ((i < 10))
 do
   cat test-tmp-euc
+  ((i = i + 1))
 done > test-tmp-euc2
 
 i=0
-while ((i++ < 10))
+while ((i < 10))
 do
   cat test-tmp-sjis
+  ((i = i + 1))
 done > test-tmp-sjis2
 
 # no convert