Re: Possible bug in Makefile 3.81

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

 



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

According to Karl Berry on 11/6/2007 5:27 PM:

[adding autoconf, since the autoconf manual likes documenting these things]

>     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.
> 

I don't know if this is truly the case.  My understanding is that [ and
test have been synonyms for a long time, so that you should not have any
worries about interchanging them today on any practical porting target.
However, I do know that autoconf (and thus automake) prefers test over [,
primarily because test is less likely to mess up quoting rules in autoconf
macros.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@xxxxxxx
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHMREP84KuGfSFAYARAhp7AJ92i9b49e/r2EaCNmURnPrZKiTr2ACZAftS
g/rw8HGpJCTR3BdkJQMD5lE=
=bcs6
-----END PGP SIGNATURE-----


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux