Re: autconf, configure & purify...

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

 



Hi Andreas,

* Andreas Schwab wrote on Fri, Oct 24, 2008 at 11:19:09PM CEST:
> Ralf Wildenhues <Ralf.Wildenhues@xxxxxx> writes:
> 
> > - many vendor shells complain about 'test -z' without further argument:
> 
> A POSIX-compliant test won't, and returns zero.

Yeah, all those shells aren't compliant.  Solaris sh even seems to abort
the script.

FWIW, the Autoconf manual documents this, too (for -n instead of -z, but
I guess that can be inferred):

`test' (strings)
     Posix says that `test "STRING"' succeeds if STRING is not null,
     but this usage is not portable to traditional platforms like
     Solaris 10 `/bin/sh', which mishandle strings like `!' and `-n'.

Cheers,
Ralf


_______________________________________________
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