Skip to content
Tcl Source Code History Of Ticket 1029267fffffffffffffffffffffffffffffffff
Login

History Of Ticket 1029267fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1029267fffffffffffffffffffffffffffffffff

  1. Ticket change [5362beb166] (rid 93753) by dgp on 2004-09-16 15:22:33:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      % expr 1=2 
      syntax error in expression "1=2": extra tokens at end
      of expression
      
      
      The error message
      "single equality character not legal in expressions"
      is present in tclParseExpr.c and would
      be more fitting here.  Why isn't it returned?
      
    4. foundin initialized to: "obsolete: 8.5a2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "45. Parsing and Eval"
    10. title initialized to: "bad [expr] syntax error message"
    11. type initialized to: "Bug"
  2. Ticket change [db03ce60f9] (rid 107885) by msofer on 2004-09-19 21:18:04:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Oh my ... the whole "wrong lexeme type" section of
      ParsePrimaryExpr() seems non-functional. Another example is
       % expr 1,2
       syntax error in expression "1,2": extra tokens at end of
      expression
      
      What is happening is that the parser sees the '1' as a
      complete literal expression, and complains about '=2' or
      ',2' or 'a2' following it. The correct message is produced
      for [expr =2], as the first lexeme is the bare = sign.
      
      Another beauty:
      % expr (1=2)
      syntax error in expression "(1=2)": looking for close
      parenthesis
      
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  3. Ticket change [9b6bddbb1b] (rid 111119) by msofer on 2004-09-19 21:24:32:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      At least some of the tests (notably parseExpr-16.33) expect
      this behaviour.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  4. Ticket change [9b956b3ee7] (rid 111154) by msofer on 2004-09-19 22:20:08:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Another one:
      % expr cos(1=2)
      syntax error in expression "cos(1=2)": missing close
      parenthesis at end of function call
      
      What is happening is that the expr parser considers the
      subexpression '1=2' finished at the '1', with extra tokens
      '=2)'. 
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  5. Ticket change [60737afc26] (rid 116005) by dkf on 2004-09-20 00:11:08:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Getting sensible failures out of a parser is notoriously
      difficult. At least we aren't in the previous situation
      where all the parser would say was "syntax error", which was
      singularly uninformative in complex expressions...
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  6. Ticket change [65f4c1dd97] (rid 102633) by dgp on 2006-03-10 13:41:39:

    1. assignee changed to: "dgp"
    2. priority changed to: "9 Immediate"
  7. Ticket change [f4e87d6840] (rid 130010) by dgp on 2006-03-31 23:18:06:

    1. priority changed to: "7 High"
  8. Ticket change [d5b015ffc2] (rid 123668) by flatworm on 2006-06-02 00:06:54:

    1. icomment:
      Logged In: YES 
      user_id=1350198
      
      A kind of "silent error" when just one double quote is
      passed to the expr:
      
      % if {"} { puts then } else { puts else }
      
      % set errorCode
      NONE
      % set errorInfo
      
          while executing
      "if {"} { puts then } else { puts else }"
      
      On the other hand,
      if {(")} ...
      produces the sensible error message:
      missing "
      
      
    2. login: "flatworm"
    3. mimetype: "text/plain"
    4. username: "flatworm"
  9. Ticket change [897e50f310] (rid 132033) by dgp on 2006-07-05 12:35:19:

    1. closedate changed to: "2006-07-05T05:35:19"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      fixed in 8.5a5
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"