Skip to content
Tcl Source Code History Of Ticket 218393
Login

History Of Ticket 218393

Artifacts Associated With Ticket 218393

  1. Ticket change [e35697e651] (rid 87779) by nobody on 2000-10-26 00:57:02:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 5059 Bug
      Version: 1.3
      SubmitDate: '2000-04-13'
      LastModified: '2000-04-13'
      Severity: SER
      Status: Closed
      Submitter: techsupp
      ChangedBy: hobbs
      OS: Linux
      OSVersion: Mandrake 7.0(TclPro1.3 & TCL/TK8.0) & IRIX6.5(TCL/TK 8.0)
      Machine: Intel PIII-500 Linux & SGI Origin200
      FixedDate: '2000-10-25'
      ClosedDate: '2000-04-13'
      
      
      Name:
      Feng Lei
      
      ReproducibleScript:
      #!/usr/local/bin/wish
      
      set NUM 1
      while {$NUM < 12} {
      #  set  NUM [expr $NUM + 1]
         incr NUM
         set  NUM [format "%02d" $NUM]
         puts $NUM
      }
      exit
      
      ObservedBehavior:
      OUTPUT:
      02
      03
      04
      05
      06
      07
      08
      Error in startup script: expected integer but got "08"
          while executing
      "incr NUM"
          (file "String_Format.tcl" line 8)
      
      
      IF I set the NUM=8 it aslo can not run properly.
      09
      Error in startup script: syntax error in expression "09 + 1"
          while executing
      "expr $NUM + 1"
      
      DesiredBehavior:
      It is very easy calculated, but he not understand!
      
      
      
      Tcl8.3 explains this error with a better message:
      
      weasel [tcl8.2/unix/sol251] 41 % tclsh8.3
      % expr 08
      "08" is an invalid octal number
      
      See the docs for more info. 
      -- 04/13/2000 hobbs
      
    4. foundin initialized to: "obsolete: 8.1"
    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: "expr 08 + 1 will error"
    11. type initialized to: "Bug"
  2. Ticket change [6b019ce77a] (rid 128245) by welch on 2000-10-26 08:21:17:

    1. closedate changed to: "2000-10-26T01:21:17"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [88920b8c3f] (rid 131888) by dgp on 2001-04-18 06:44:59:

    1. closedate changed to: "2001-04-17T23:44:59"
    2. closer changed to: "dgp"
    3. subsystem changed to: "45. Parsing and Eval"