bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] Order of operations


From: Davide Brini
Subject: Re: [bug-gawk] Order of operations
Date: Wed, 15 Jun 2011 19:35:56 +0200
User-agent:

On Wed, 15 Jun 2011 09:11:47 -0700 (PDT) address@hidden wrote:

> Is there a list of order of operations in Gawk?  The reason I am asking
> is that I was trying to execute:
> 
> if ( !x in y)
> 
> and rather than executing:
> if ( !( x in y))
> it did:
> if ( (!x) in y )
> 
> I couldn't find any reference to order of operations that included the
> 'in' operator (if it really is an operator).
> 
> James
> 

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/awk.html

Look for "Expressions in awk", and also in the gawk manual here:

http://www.gnu.org/software/gawk/manual/gawk.html#Precedence

-- 
D.



reply via email to

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