Skip to content
Tcl Source Code History Of Ticket 218593
Login

History Of Ticket 218593

Artifacts Associated With Ticket 218593

  1. Ticket change [a6e134000c] (rid 98684) by nobody on 2000-10-26 01:02:53:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
    4. foundin initialized to: "obsolete: 8.0.3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "string compare fails if preceded by expr"
    11. type initialized to: "Bug"
  2. Ticket change [2cc6f87417] (rid 118964) by welch on 2000-10-26 08:25:09:

    1. closedate changed to: "2000-10-26T01:25:09"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [22766ff194] (rid 130752) by dgp on 2001-04-16 21:02:27:

    1. closedate changed to: "2001-04-16T14:02:27"
    2. closer changed to: "dgp"
    3. subsystem changed to: "47. Bytecode Compiler"