zsh-users
 help / color / mirror / code / Atom feed
* $[ 09.5 ]  -- bad math expression
@ 2012-12-02 10:30 Atom Smasher
  2012-12-02 21:05 ` Peter Stephenson
  2012-12-02 21:59 ` Bart Schaefer
  0 siblings, 2 replies; 4+ messages in thread
From: Atom Smasher @ 2012-12-02 10:30 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-12-02 23:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-02 10:30 $[ 09.5 ] -- bad math expression Atom Smasher
2012-12-02 21:05 ` Peter Stephenson
2012-12-02 21:59 ` Bart Schaefer
2012-12-02 22:15   ` Atom Smasher

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).