bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: Gawk 3.04 bugginess.


From: Aharon Robbins
Subject: Re: Gawk 3.04 bugginess.
Date: Mon, 04 Dec 2000 11:56:16 +0200

Greetings.  Re this:

> From: address@hidden
> Date: Mon, 4 Dec 2000 08:49:18 GMT
> Subject: Gawk 3.04 bugginess.
>
> Please include your operating system - FBSD-3.51
> the version of gawk - 3.04
> what  C  compiler  you used  to  compile it - gcc
> -------------------------------------------------
> and a test program and data that are
> as small as possible for reproducing the problem.
>
> ( "" < 0 ) != ( "" > 0 )
>
> but i think they should be of equal value.
> seems like "" should equal +0 as well.

Sorry, but this is not a bug. Both comparisons are string
comparisons; the 0 is treated as though it were "0", and
thus "" < "0" is true and "" > "0" is false.

See the gawk documentation, where the comparison / conversions
rules are explained in more detail.

Thanks,

Arnold
--
Aharon (Arnold) Robbins --- Pioneer Consulting Ltd.     address@hidden
P.O. Box 354            Home Phone: +972  8 979-0381    Fax: +1 603 761-6761
Nof Ayalon              Cell Phone: +972 51  297-545    (See www.efax.com)
D.N. Shimshon 99785     Laundry increases exponentially in the
ISRAEL                  number of children. -- Miriam Robbins




reply via email to

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