Strange make check output

Joseph Bruni jbruni@mac.com
Sun May 4 01:38:02 2003


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

In the file ./checks/defs.inc there are a couple of lines with bad 
syntax for '['.

Line 102: if [ -f ./options]; then
Line 104: elif [ -f ./gpg.conf]; then

The program, '/bin/[', is expecting whitespace in front of the final 
']' parameter. Adding a space fixes all the "missing ]" warnings.

- -Joe






On Saturday, May 3, 2003, at 03:39 PM, Claus Assmann wrote:

> On Sat, May 03, 2003, Gordon Worley wrote:
>> I get strange output when running make check for gnupg-1.2.2.  Any 
>> idea
>> what all of those `missing' lines are?
>
>> ./version.test: [: missing `]'
>> ./version.test: [: missing `]'
>
> Try this:
>
> *** gnupg-1.2.2/checks/defs.inc	Thu May  1 06:17:46 2003
> --- gnupg-1.2.2-/checks/defs.inc	Sat May  3 15:35:00 2003
> ***************
> *** 99,107 ****
>   [ -z "$srcdir" ] && fatal "not called from make"
>
>   # Make sure we have a valid option files even with VPATH builds.
> ! if [ -f ./options]; then
>     :
> ! elif [ -f ./gpg.conf]; then
>     :
>   elif [ -f $srcdir/options ]; then
>     cat $srcdir/options >gpg.conf
> --- 99,107 ----
>   [ -z "$srcdir" ] && fatal "not called from make"
>
>   # Make sure we have a valid option files even with VPATH builds.
> ! if [ -f ./options ]; then
>     :
> ! elif [ -f ./gpg.conf ]; then
>     :
>   elif [ -f $srcdir/options ]; then
>     cat $srcdir/options >gpg.conf
>
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users@gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (Darwin)

iEUEARECAAYFAj60UyoACgkQ4rg/mXNDweNUNgCgiAuA4vOLQB50VYvStzyLhyI7
ntQAmPQWQFSRdALP+jAWqZe/mNE/UzA=
=mUc+
-----END PGP SIGNATURE-----