Artifact
e35697e651682047ba292137c488d3ce18fe6af2:
Ticket change
[e35697e651]
- New ticket
[218393ffffffffff|218393ffff] <i>expr 08 + 1 will error</i>.
by
nobody on
2000-10-26 00:57:02.
D 2000-10-26T00:57:02
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s5059\sBug\nVersion:\s1.3\nSubmitDate:\s'2000-04-13'\nLastModified:\s'2000-04-13'\nSeverity:\sSER\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\shobbs\nOS:\sLinux\nOSVersion:\sMandrake\s7.0(TclPro1.3\s&\sTCL/TK8.0)\s&\sIRIX6.5(TCL/TK\s8.0)\nMachine:\sIntel\sPIII-500\sLinux\s&\sSGI\sOrigin200\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-04-13'\n\n\nName:\nFeng\sLei\n\nReproducibleScript:\n#!/usr/local/bin/wish\n\nset\sNUM\s1\nwhile\s{$NUM\s<\s12}\s{\n#\s\sset\s\sNUM\s[expr\s$NUM\s+\s1]\n\s\s\sincr\sNUM\n\s\s\sset\s\sNUM\s[format\s"%02d"\s$NUM]\n\s\s\sputs\s$NUM\n}\nexit\n\nObservedBehavior:\nOUTPUT:\n02\n03\n04\n05\n06\n07\n08\nError\sin\sstartup\sscript:\sexpected\sinteger\sbut\sgot\s"08"\n\s\s\s\swhile\sexecuting\n"incr\sNUM"\n\s\s\s\s(file\s"String_Format.tcl"\sline\s8)\n\n\nIF\sI\sset\sthe\sNUM=8\sit\saslo\scan\snot\srun\sproperly.\n09\nError\sin\sstartup\sscript:\ssyntax\serror\sin\sexpression\s"09\s+\s1"\n\s\s\s\swhile\sexecuting\n"expr\s$NUM\s+\s1"\n\nDesiredBehavior:\nIt\sis\svery\seasy\scalculated,\sbut\she\snot\sunderstand!\n\n\n\nTcl8.3\sexplains\sthis\serror\swith\sa\sbetter\smessage:\n\nweasel\s[tcl8.2/unix/sol251]\s41\s%\stclsh8.3\n%\sexpr\s08\n"08"\sis\san\sinvalid\soctal\snumber\n\nSee\sthe\sdocs\sfor\smore\sinfo.\s\n--\s04/13/2000\shobbs
J foundin obsolete:\s8.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title expr\s08\s+\s1\swill\serror
J type Bug
K 218393ffffffffffffffffffffffffffffffffff
U nobody
Z 96bd53556761c27cf70f430cf2a22e51