Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Precedence of operations in [[



On Mon, 2018-12-03 at 09:14 -0600, Peng Yu wrote:
> It seems that there is precedence of the operations in [[. For
> example, && is of a higher precedence than ||. I don't find where it
> is documented in the man page. Could anybody show me? Thanks.
> 
> I see ARITHMETIC EVALUATION discusses precedence. But I don't think it
> is for [[.

Precedence is basically the same as for arithmetic, && higher than ||
higher than equality and inequality, but you're right that it isn't
explicitly documented in the case of [[.

pws



Messages sorted by: Reverse Date, Date, Thread, Author