Overview
| Artifact ID: | dfc886025052a25061d597138d03e9d4c98b1e14 |
|---|---|
| Ticket: | 545661ffffffffffffffffffffffffffffffffff
bug in expr error handler |
| User & Date: | msofer on 2002-04-18 13:59:02 |
Changes
- assignee changed to: "msofer"
- cmimetype changed to: "text/plain"
- comment changed to:
There is an inconsistent behaviour in the [expr] error handler: the moment when an invalid operand is detected and an error is raised depends on the evaluation path of the expression (compiled at compile-time vs at run-time): % set a 08 08 % expr $a - 1 "08" is an invalid octal number % expr {$a - 1} can't use invalid octal number as operand of "-" The compiled-at-run-time version seems not to respect the expr.n manual page, which states: "If no numeric interpretation is possible, then an operand is left as a string (and only a limited set of operators may be applied to it)." % set a 08 08 % expr $a == 1 "08" is an invalid octal number % expr {$a == 1} 0 See also the (off-topic?) comments in [Bug #542588]. - foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "msofer"
- subsystem changed to: "45. Parsing and Eval"
- title changed to: "bug in expr error handler"
- type changed to: "Bug"