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

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

Re: reporting a bug in AWK


From: Aharon Robbins
Subject: Re: reporting a bug in AWK
Date: Mon, 20 Jan 2003 10:30:12 +0200

> From: address@hidden
> To: address@hidden
> Cc: address@hidden
> Subject: reporting a bug in AWK
> Date: Mon, 20 Jan 2003 08:16:42 +0100
>
> Dear FSF,
>
> here the description of what seems to be a bug in AWK. (I'm not able to 
> find out if I'm using your awk or that of Solaris).
> (Please ignore the other one in the mail below. Mr Henek from ATComputing 
> <my  teacher of basic Unix> has already clearifeid that it was due to my 
> misuse of awk.)
> Thanks in advance,
>
> P A Nicolaidi
>
> ____________________________________________________________________
>
>
>                            if( diff[j,i] > alt[i]  )
> This "if" "condition" result (erroneously) matched from the following 
> data.
>
>       alt[i]    is == 0.1            (I have no moer the right value)
> and 
>     diff[i,j] is 3.3465e-05   (I have no moer the right value)
>
> [it seems that it reads   diff[i,j] as == 3.3]
>  
> This "if" works correclty id  d[i,j] is 0.0003465
> [it understands that 0.0003465 is less than 0.1]

I note that your code has    diff[j,i]   while your prose has   diff[i,j].
That is, the order of subscripts is reversed.  This may be a typographical
error in your email, or a real error in your code.  You should check
that out.

Otherwise, if you still think there is a bug, please construct a small
but COMPLETE awk program with a small input data set that illustrates
the problem, and send it to me.  You should also indicate what version of
gawk you are using, how it was compiled, what system you have, and so on.

Thanks,

Arnold Robbins





reply via email to

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