fix bashisms in testsuite/
These places use ${var/search/replace}, $((n++) and `type -p' constructs which are not-so-standard. Replace with equivalent constructs. Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
This commit is contained in:
committed by
Bernhard Reutner-Fischer
parent
5e63776212
commit
afa63b2dcd
@@ -30,13 +30,13 @@ result=`(
|
||||
n=0
|
||||
while test $n -le 999; do
|
||||
echo "$text" | head -c $n | "$sum"
|
||||
: $((n++))
|
||||
n=$(($n+1))
|
||||
done | "$sum"
|
||||
)`
|
||||
|
||||
if test x"$result" = x"$expected -"; then
|
||||
echo "PASS: $sum"
|
||||
exit 0
|
||||
echo "PASS: $sum"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "FAIL: $sum (r:$result exp:$expected)"
|
||||
|
Reference in New Issue
Block a user