mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 04:30:24 +02:00
users/17445: fix handling of leading zeroes in floating point
This commit is contained in:
parent
968a7a2a51
commit
431c22024d
3 changed files with 19 additions and 3 deletions
|
@ -152,6 +152,16 @@
|
|||
0:commas and parentheses, part 1
|
||||
>4
|
||||
|
||||
print $(( 07.5 ))
|
||||
(setopt octalzeroes; print $(( 09.5 )))
|
||||
0:leading zero doesn't affect floating point
|
||||
>7.5
|
||||
>9.5
|
||||
|
||||
(setopt octalzeroes; print $(( 09 )))
|
||||
1:octalzeroes rejects invalid constants
|
||||
?(eval):1: bad math expression: operator expected at `9 '
|
||||
|
||||
(setopt octalzeroes; print $(( 08#77 )))
|
||||
0:octalzeroes doesn't affect bases
|
||||
>63
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue