diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2007-12-16 22:20:31 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2007-12-16 22:20:31 +0000 |
commit | 6176062298c7efcebaf5458c63a125de93294bc9 (patch) | |
tree | 1b5badc6cf29303c6cdcb29b2152d7dd0f4646ea /Test/C01arith.ztst | |
parent | 0963ce3a64a2921cd4eead8708ca4d6c4d20d33c (diff) | |
download | zsh-6176062298c7efcebaf5458c63a125de93294bc9.tar.gz zsh-6176062298c7efcebaf5458c63a125de93294bc9.tar.xz zsh-6176062298c7efcebaf5458c63a125de93294bc9.zip |
24271: handle parse failures in command substitution better
Diffstat (limited to 'Test/C01arith.ztst')
-rw-r--r-- | Test/C01arith.ztst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Test/C01arith.ztst b/Test/C01arith.ztst index b80f78b6a..1a19ed398 100644 --- a/Test/C01arith.ztst +++ b/Test/C01arith.ztst @@ -153,3 +153,12 @@ print $(( 37#z )) 1:bases beyond 36 don't work ?(eval):1: invalid base: 37 + + print $(( 3 + "fail" )) +1:parse failure in arithmetic +?(eval):1: bad math expression: operand expected at `"fail" ' + + alias 3=echo + print $(( 3 + "OK"); echo "Worked") +0:not a parse failure because not arithmetic +>+ OK Worked |