diff options
| author | Peter Stephenson <p.stephenson@samsung.com> | 2018-08-08 17:11:54 +0100 |
|---|---|---|
| committer | Peter Stephenson <p.stephenson@samsung.com> | 2018-08-08 17:11:54 +0100 |
| commit | 225b35c9070f94cf79c90c33ffcee84b281f894d (patch) | |
| tree | 6b3d996d5c7ff8b9e7acb0fb9254da5e886e547e /Test | |
| parent | 43254: remove hg -w completion, add hg -S (diff) | |
| download | zsh-225b35c9070f94cf79c90c33ffcee84b281f894d.tar zsh-225b35c9070f94cf79c90c33ffcee84b281f894d.tar.gz zsh-225b35c9070f94cf79c90c33ffcee84b281f894d.tar.bz2 zsh-225b35c9070f94cf79c90c33ffcee84b281f894d.tar.lz zsh-225b35c9070f94cf79c90c33ffcee84b281f894d.tar.xz zsh-225b35c9070f94cf79c90c33ffcee84b281f894d.tar.zst zsh-225b35c9070f94cf79c90c33ffcee84b281f894d.zip | |
43261: Fix unary minus with base.
Apply unary minus to a complete lexical constant rather than the
first component that comes along.
Diffstat (limited to 'Test')
| -rw-r--r-- | Test/C01arith.ztst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Test/C01arith.ztst b/Test/C01arith.ztst index 77a46ebd5..f1364ab36 100644 --- a/Test/C01arith.ztst +++ b/Test/C01arith.ztst @@ -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 |
