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

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

gawk --profile eats parentheses


From: Hermann Peifer
Subject: gawk --profile eats parentheses
Date: Tue, 11 Aug 2009 16:45:02 +0200
User-agent: Thunderbird 2.0.0.22 (Windows/20090605)


$  gawk --profile '$1=="A" && ( $2=="B" || $3=="C" )'

This results into:

$ cat awkprof.out
       # gawk profile, created Tue Aug 11 16:43:59 2009

       # Rule(s)

       $1 == "A" && $2 == "B" || $3 == "C"     {
               print $0
       }

In awkprof.out, the parentheses are lost which changes the logic of the condition.

(I am using gawk 3.1.6).

Hermann




reply via email to

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