[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-teseq] tests/run.in portability fix
From: |
Christian Weisgerber |
Subject: |
[Bug-teseq] tests/run.in portability fix |
Date: |
Sat, 25 Oct 2008 16:22:59 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
OpenBSD's /bin/sh (pdksh) doesn't like line 40 of tests/run.in:
if [ "$#" -ge 1 -a "${1}" = "-r" ]
$ [ 1 -ge 1 -a -r = -r ]
sh: [: -r: unexpected operator/operand
--- tests/run.in.orig Sat Oct 25 16:14:54 2008
+++ tests/run.in Sat Oct 25 16:15:07 2008
@@ -37,7 +37,7 @@ get_vars()
r_expected="${r_expected:-$input}"
}
-if [ "$#" -ge 1 -a "${1}" = "-r" ]
+if [ "$#" -ge 1 -a X"${1}" = X"-r" ]
then
echo
echo "RUNNING RESEQ TESTS"
--
Christian "naddy" Weisgerber address@hidden
- [Bug-teseq] tests/run.in portability fix,
Christian Weisgerber <=