Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

$[ 09.5 ] -- bad math expression



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