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:19:07 -0800
User-agent: Thunderbird 1.5.0.13 (X11/20070824)

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

Karl Berry wrote:
>     >   if [[ -n "string" ]]; then echo "hello"; fi
> 
> For better portability, don't use [[ (or [).  Just use 
> 
> if test -n "string"; then ...

Are there still Unixen for which [ is not portable?

For crying out loud, it wouldn't be too difficult to write a /usr/bin/[
that wraps /usr/bin/test, omitting the final ] argument, if it's really
necessary!

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

iD8DBQFHMQR77M8hyUobTrERCDgxAJ99UJ/wNa4Rk7yexl1th3/j+s+hBwCbBPm4
NEPQRk4Q0sgWezHtTD+TKXU=
=CIuA
-----END PGP SIGNATURE-----




reply via email to

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