Skip to content
Tcl Source Code History Of Ticket 218310
Login

History Of Ticket 218310

Artifacts Associated With Ticket 218310

  1. Ticket change [c2f76a3239] (rid 111575) by nobody on 2000-10-26 00:55:59:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 3697 Bug
      Version: 8.2
      SubmitDate: '1999-11-29'
      LastModified: '1999-11-29'
      Severity: LOW
      Status: Closed
      Submitter: techsupp
      ChangedBy: hobbs
      OS: Windows NT
      OSVersion: Windows NT 4
      FixedDate: '2000-10-25'
      ClosedDate: '1999-11-29'
      
      
      Name:
      Jay Schmidgall
      
      ReproducibleScript:
      set opr +
      set x 5
      set y 15
      expr $x $opr $y   ;# this works
      expr {$x $opr $y} ;# this doesn't work
      
      ObservedBehavior:
      The line which doesn't work gives the error:
      
      syntax error in expression "$x $opr $y"
      
      DesiredBehavior:
      I would expect to get the answer, 15.
      
      
      
      expr needs to know about operators ahead of time (early
      error detection), which is why the first, which does one
      level of substitution first, works. 
      -- 11/29/1999 hobbs
      
    4. foundin initialized to: "obsolete: 8.2"
    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 command not substituting operator"
    11. type initialized to: "Bug"
  2. Ticket change [055fb256bc] (rid 89056) by welch on 2000-10-26 08:19:00:

    1. closedate changed to: "2000-10-26T01:19:00"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [0f771cdec3] (rid 94794) by dgp on 2001-04-19 02:48:18:

    1. closedate changed to: "2001-04-18T19:48:18"
    2. closer changed to: "dgp"
    3. resolution changed to: "Invalid"
    4. subsystem changed to: "16. Commands A-H"