[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in solaris 10 /bin/ksh w.r.t. test -z ")"
From: |
Stefano Lattarini |
Subject: |
Re: Bug in solaris 10 /bin/ksh w.r.t. test -z ")" |
Date: |
Wed, 8 Sep 2010 14:50:57 +0200 |
User-agent: |
KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; ) |
Hi Eric.
On Tuesday 07 September 2010, Eric Blake wrote:
> Therefore,
>
> > $ /bin/ksh -c 'test -z ")"; echo $?' # ready to laugh or cry?
> > 0
>
> this is yet another case of @var{string} that looks like an
> operator, and yet another reason that you should ALWAYS use test
> x"$val" = x rather than test -z "$val" if you don't know what $val
> contains.
>
> But yes, giving this particular example in the manual would be
> helpful.
Thanks for having added this to the Autoconf manual.
Regards,
Stefano