From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24611 invoked by alias); 4 Dec 2012 15:53:02 -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: 30828 Received: (qmail 22172 invoked from network); 4 Dec 2012 15:53:01 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <121204075226.ZM22028@torch.brasslantern.com> Date: Tue, 04 Dec 2012 07:52:26 -0800 In-reply-to: <20121202210516.66e31219@pws-pc.ntlworld.com> Comments: In reply to Peter Stephenson "Re: $[ 09.5 ] -- bad math expression" (Dec 2, 9:05pm) References: <20121202210516.66e31219@pws-pc.ntlworld.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Those patches Re: $[ 09.5 ] -- bad math expression MIME-version: 1.0 Content-type: text/plain; charset=us-ascii [>workers] We have two patches for this. PWS (users/17447) seems to have found a bug with OCTAL_ZEROES that my patch (17445) won't address, though I'm not sure what that bug is. My C01arith.ztst patch looks for a couple of things that Peter's doesn't -- perhaps combine tests? In any case there's a typo in the description part of Peter's test: On Dec 2, 9:05pm, Peter Stephenson wrote: } } + # 3/4 is a multiple of power of two so assume it's represented exactly. } + print ${$(( 09.75 * 4))%%.*} } +0:leading underscores } +>39 (Not "underscores") Curiosity question: Since this is just a parsing exercise, what's the reason for the * 4 ?