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

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

reporting a bug in AWK


From: pietro . nicolaidi
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]

________________________________________________________________________








Pietro Anastasio Nicolaidi
           FD.3.R.37 MOS4
phone. 0031.24.353.3012

----- Forwarded by Pietro Nicolaidi/NYM/SC/PHILIPS on 01/20/03 08:10 AM -----





Pietro Nicolaidi

01/17/03 04:27 PM

       
        To:        address@hidden
        cc:        address@hidden
address@hidden

        Subject:        reporting a bug in AWK

        Classification:        Unclassified



Dear FSF,



I have found this two bug in AWK (I'm not able to find out if it is the gnu AWK or something else).

Hoping it is useful.

Kind Regards

Pietro A Nicolaidi


---------------------------------------------------------------------------------------------------------------------------
                                        FIRST CASE

------------------------------------------------------------------------------------------------------------------------------
FROM THE CODE
   
>  dati_XP0101 =  $0                                                                   # here "$0" has as value a "string", that is the name of a "data-file" in the current "directory"
>            while ( (getline < dati_XP0101  ) > 0)                       # here I'm reading the "lines" of the "data-file"
>                {
>
>#         if ($1 == VIMS1FV01)   per qualche ragione questo
this last line returns strange results, when it trys to analyzes  the line ",0.000" from the data-file.

>           if  (match($1,"VIMS1FV01")==1)
this last line, instead, works correclty, and is triggered only by the data-file-line "VIMS1FV01,-3.8821e-03"


FROM THE DATA FILE  (

><EOH>
>XP0101_MON,,1,1
>Single,0,0
>, 0.0000e+00
>, 0.0000e+00
>, 0.0000e+00
>, 0.0000e+00
>VIMS1FV01,-3.8821e-03

--------------------------------------------------------------------------------------------------------------------

NEXT  CASE
____________________________________________________________________


                           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]


-------------------------------------------------------------------------------------------------------



 









___________________________________________________________________-

Pietro Anastasio Nicolaidi
           FD.3.R.37 MOS4
phone. 0031.24.353.3012


reply via email to

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