Artifacts Associated With Ticket 545661ffffffffffffffffffffffffffffffffff
Ticket change [dfc8860250] (rid 115071) by msofer on 2002-04-18 13:59:02:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized 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 initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "msofer"
- subsystem initialized to: "45. Parsing and Eval"
- title initialized to: "bug in expr error handler"
- type initialized to: "Bug"
Ticket change [2986cbd74f] (rid 88888) by dgp on 2003-11-13 08:29:27:
- foundin changed to: "obsolete: 8.3.4"
Ticket change [2d33744834] (rid 119029) by msofer on 2004-03-28 07:37:42:
- closedate changed to: "2004-03-28T00:37:42"
- closer changed to: "msofer"
- icomment:
Logged In: YES user_id=148712 Mmhh ... this is probably my misunderstanding of 'expr'; if nobody else complains, I'll close this as invalid.
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "msofer"
Ticket change [fd6471538a] (rid 108406) by dgp on 2004-03-29 11:58:22:
- closedate changed to: "2004-03-29T04:58:22"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 Looks like a distinction between a parsing error and an evaluation error.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"