From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19579 invoked by alias); 4 Sep 2017 21:05:14 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 41639 Received: (qmail 18941 invoked by uid 1010); 4 Sep 2017 21:05:14 -0000 X-Qmail-Scanner-Diagnostics: from kahlil.inlv.org by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(37.59.109.123):SA:0(-1.9/5.0):. Processed in 3.026931 secs); 04 Sep 2017 21:05:14 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: martijn@inlv.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | To: Zsh hackers list From: Martijn Dekker Subject: $((++a++)) Message-ID: <74d2c8e3-7a0f-b705-29c8-e5a2f6e182aa@inlv.org> Date: Mon, 4 Sep 2017 22:45:46 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: nl Content-Transfer-Encoding: 7bit Why is this accepted? % a=1 % echo $((++a++)) 2 % echo $((--a--)) 1 Looks like that should be an invalid arithmetic expression. - M.