Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
arithmetic operator precedence
- X-seq: zsh-workers 25147
- From: Stephane Chazelas <Stephane_Chazelas@xxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: arithmetic operator precedence
- Date: Thu, 12 Jun 2008 10:57:23 +0100
- Mail-followup-to: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
$ 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