Artifacts Associated With Ticket 218593ffffffffff
Ticket change [a6e134000c] (rid 98684) by nobody on 2000-10-26 01:02:53:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 1380 Bug Version: 8.0.3 SubmitDate: '1999-03-02' LastModified: '1999-08-07' Severity: MED Status: Released Submitter: pat ChangedBy: hobbs OS: Solaris OSVersion: SunOS 5.6 Machine: Other FixedDate: '1999-08-07' FixedInVersion: 8.0.5 ClosedDate: '2000-10-25' Name: Ivan Prock Extensions: none CustomShell: none ReproducibleScript: set tcl_traceExec 3 set month 01 set day 08 # if the expr statement is commented-out, the [string compare] returns 1, # otherwise we get the incorrect -1 because "01" gets converted to "1" if {[expr $month < 01]} {} puts "day = \[$day\]" set x [string compare $day 01] puts "x = $x" exit 0; ObservedBehavior: 1: (18) invoking "info" "patchlevel" 1: (20) invoking "puts" "8.0.3" 8.0.3 Executing ByteCode 0x8b508, ref ct 2, epoch 0, interp 0x83e60(epoch 0) Source: "1 < 1" Cmds 0, chars 5, inst 6, objs 1, aux 0, stk depth 2, code/src 28.80n = 104(header)+6(inst)+24(objs)+0(exc)+0(aux)+0(cmd map) Starting stack top=-1 1: (70) invoking "puts" "day = [08]" day = [08] 1: (84) invoking "string" "compare" "08" "1" 1: (97) invoking "puts" "x = -1" x = -1 1: (104) invoking "exit" "0" DesiredBehavior: the string compare's behaviour shouldn't be affected by a previous command This was a bug related to an overaggressive object compiler that has since been fixed. -- 08/07/1999 hobbs - foundin initialized to: "obsolete: 8.0.3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "string compare fails if preceded by expr"
- type initialized to: "Bug"
Ticket change [2cc6f87417] (rid 118964) by welch on 2000-10-26 08:25:09:
- closedate changed to: "2000-10-26T01:25:09"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [22766ff194] (rid 130752) by dgp on 2001-04-16 21:02:27:
- closedate changed to: "2001-04-16T14:02:27"
- closer changed to: "dgp"
- subsystem changed to: "47. Bytecode Compiler"