From 246a099ea7d0dded21bea5146c246ad7f484e99d Mon Sep 17 00:00:00 2001 From: arai Date: Wed, 21 Aug 2002 16:14:15 +0000 Subject: [PATCH] * tests/lha-test.in: `++' is invalid arithmetic operator on POSIX 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 | 3 ++- tests/lha-test13 | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/lha-test.in b/tests/lha-test.in index bc499c6..c886d04 100644 --- a/tests/lha-test.in +++ b/tests/lha-test.in @@ -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 diff --git a/tests/lha-test13 b/tests/lha-test13 index 1d027ea..cb1abfe 100644 --- a/tests/lha-test13 +++ b/tests/lha-test13 @@ -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 -- 2.11.0