bug-teseq
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-teseq] tests/run.in portability fix


From: Micah Cowan
Subject: Re: [Bug-teseq] tests/run.in portability fix
Date: Sat, 25 Oct 2008 13:28:50 -0700
User-agent: Thunderbird 2.0.0.17 (X11/20080925)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Christian Weisgerber wrote:
> 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"

Thanks; applied. :)

- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer.
GNU Maintainer: wget, screen, teseq
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJA4GC7M8hyUobTrERAk+NAJ9isYQVVxzsp8Tzb/UOYOEebICkswCeLajY
3dN7Wx519NvJxOSccSjvRcQ=
=9SMd
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]