delorie.com/archives/browse.cgi | search |
On Thu, Mar 15, 2001 at 02:51:08AM -0300, Alexandre Oliva wrote: : On Mar 14, 2001, "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au> wrote: : : > version 2.. returns true/false now. I've also updated te sample code : > to reflect this : : Better use `:' instead of `true'. I'm not sure `:' is more portable, : but at least it's a built-in in more shells than `true'. I agree, but I'd rather have the implementation/optimization details hidden in some autoconf-provided variables like $as_true and $as_false - it would be less obfuscating. Then you could set $as_true to ":" and perhaps $as_false to "(exit 1)" if "false" for some reason does not work on a system. Lars J
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |