Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
$[ 09.5 ] -- bad math expression
- X-seq: zsh-users 17444
- From: Atom Smasher <atom@xxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: $[ 09.5 ] -- bad math expression
- Date: Sun, 2 Dec 2012 23:30:34 +1300 (NZDT)
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Openpgp: id=0xB88D52E4D9F57808; algo=1 (RSA); size=4096; url=http://atom.smasher.org/pgp.txt
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author