1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-25 05:10:28 +02:00

23165: fix problems with bases: error if over 36 and don't interpret octal

This commit is contained in:
Peter Stephenson 2007-02-12 16:43:40 +00:00
parent 9ed500a1cd
commit 2c92d005d7
5 changed files with 51 additions and 10 deletions

View file

@ -136,3 +136,15 @@
print $(( 5, (3 + 7, 4) ))
0:commas and parentheses, part 1
>4
(setopt octalzeroes; print $(( 08#77 )))
0:octalzeroes doesn't affect bases
>63
print $(( 36#z ))
0:bases up to 36 work
>35
print $(( 37#z ))
1:bases beyond 36 don't work
?(eval):1: invalid base: 37