Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e58c5d6e253ec1e18954383b693f526c8cd9e255
Ticket: 0c86d397becdae7de0cf6e99fd24bc7527688f5a
auto_mkindex fails on "if-else" statements outside any procedure
User & Date: anonymous on 2013-08-06 09:30:50
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Win7, mingw, Tcl 8.6 head;
    
    The call to:
    
    auto_mkindex d:/ mkindex-test.tcl
    
    fails if there are if-statements outside any procedure or method.
    Reproduce: Create a file which content is only:
    
    if {$something == 1} {puts yes} else {puts no}
    
    results in an error:
    
    wrong # args: should be "if name body"
        invoked from within
    "if { something == 1} {puts yes} else {puts no}"
        invoked from within
    "$parser eval $contents"
        (procedure "auto_mkindex_parser::mkindex" line 27)
        invoked from within
    "auto_mkindex_parser::mkindex $file"
        (procedure "auto_mkindex" line 23)
        invoked from within
    "auto_mkindex d:/ mkindex-test.tcl"
    
    
    Note: there seems to be strange character before the "something" variable where the "$" sign should be.
    
    thx
    
  5. foundin changed to: "8.6.0"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "55805032f00760ddf84eb3f8acb077da7bef1411"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "16. Commands A-H"
  15. title changed to:
    auto_mkindex fails on "if" statements outside any procedure
    
  16. type changed to: "Bug"