bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: Possible bug in Makefile 3.81


From: Micah Cowan
Subject: Re: Possible bug in Makefile 3.81
Date: Tue, 06 Nov 2007 16:36:20 -0800
User-agent: Thunderbird 1.5.0.13 (X11/20070824)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Karl Berry wrote:
>     Are there still Unixen for which [ is not portable?
> 
> Portability isn't the problem with [.  It's parsing.
> 
> [ -n "$x" ]
> 
> fails if x=] ... or did at one time anyway.  Sorry for lack of details,
> it's been too many years.

Hm, I'd consider that to be a bug in the implementation, but yeah, I
could see that happening. I hope there aren't any left that do that, though.

POSIX, at least, is clear enough that only the final ] is omitted when
the [ ] is used.

- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer...
http://micah.cowan.name/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHMQiE7M8hyUobTrERCGoPAJ0TPTsEyMaFCzroCpJ5jiMLB03EOQCfVsOU
0yBfu/cUfaThgMbuOarePEs=
=IZEH
-----END PGP SIGNATURE-----




reply via email to

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