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

arithmetic operator precedence



$ zsh -c 'echo $(( 1 & 2 == 2 ))'
0

"==" is meant to have precedence over &, so the above should
give 1 as in C I think. All other shells do.

-- 
Stéphane



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