Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 71d926d535ec470355410e5829111dcedaa8e8c7
Ticket: 219829ffffffffffffffffffffffffffffffffff
"subst" processes "return" incorrectly
User & Date: drh on 2000-10-31 02:17:44
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The command:
    
       puts [subst {[return {}; should be invisible]}]
    
    outputs nothing in Tcl8.0 as I would expect.  But
    it outputs "should be invisible]" in 8.3.0 and in
    8.4a2.
    
    In general, a "return" statement within [...] inside
    a subst causes the scanning of text inside the [...]
    to stop immediately, rather than continuing on to the
    closing ']'.  I do not have a fix at this time.
    
    This comes up when using "subst" to embed TCL in 
    web pages (for example in tclhttpd).  The work-
    around is to do
    
         [if 1 {...}]
    
    in place of
    
         [...]
    
    
  4. foundin changed to: "obsolete: 8.4a2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "drh"
  9. subsystem changed to: "81. Bundled Packages"
  10. title changed to: ""subst" processes "return" incorrectly"
  11. type changed to: "Bug"