mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-27 15:01:00 +01:00
43261: Fix unary minus with base.
Apply unary minus to a complete lexical constant rather than the first component that comes along.
This commit is contained in:
parent
bf8b611820
commit
225b35c907
3 changed files with 22 additions and 2 deletions
|
|
@ -467,3 +467,7 @@
|
|||
>6
|
||||
>4
|
||||
?(eval):6: bad math expression: lvalue required
|
||||
|
||||
print $(( -2#101-16#f ))
|
||||
0: Unary minus doesn't apply to base but to number as a whole.
|
||||
>-20
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue