From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1434 invoked by alias); 2 Dec 2012 10:37:45 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17444 Received: (qmail 12241 invoked from network); 2 Dec 2012 10:37:23 -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 autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at smasher.org designates 69.55.237.145 as permitted sender) X-POM: The Moon is Waning Gibbous (87% of Full) Date: Sun, 2 Dec 2012 23:30:34 +1300 (NZDT) From: Atom Smasher To: zsh-users@zsh.org Subject: $[ 09.5 ] -- bad math expression Message-ID: OpenPGP: id=0xB88D52E4D9F57808; algo=1 (RSA); size=4096; url=http://atom.smasher.org/pgp.txt MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII with zsh 4.2.1 i get what i'd expect here: echo "$[ 09.5 ]" 9.5 and all math operations work as expected. with zsh 4.3.10, this is broken: echo "$[ 09.5 ]" zsh: bad math expression: operator expected at `.5 ' and all math operations using "09.5" result in errors. the problem seems to come up when using a non-integer with a leading zero. is this a known bug? are there any workarounds? thanks... -- ...atom ________________________ http://atom.smasher.org/ 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808 ------------------------------------------------- "Those who profess to favor freedom, and yet deprecate agitation, are men who want rain without thunder and lightning. They want the ocean without the roar of its many waters." -- Frederick Douglass