Artifacts Associated With Ticket 218393
Ticket change [e35697e651] (rid 87779) by nobody on 2000-10-26 00:57:02:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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 - foundin initialized to: "obsolete: 8.1"
- 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: "expr 08 + 1 will error"
- type initialized to: "Bug"
Ticket change [6b019ce77a] (rid 128245) by welch on 2000-10-26 08:21:17:
- closedate changed to: "2000-10-26T01:21:17"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [88920b8c3f] (rid 131888) by dgp on 2001-04-18 06:44:59:
- closedate changed to: "2001-04-17T23:44:59"
- closer changed to: "dgp"
- subsystem changed to: "45. Parsing and Eval"