Overview
| Artifact ID: | 71d926d535ec470355410e5829111dcedaa8e8c7 |
|---|---|
| Ticket: | 219829ffffffffffffffffffffffffffffffffff
"subst" processes "return" incorrectly |
| User & Date: | drh on 2000-10-31 02:17:44 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- 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 [...] - foundin changed to: "obsolete: 8.4a2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "drh"
- subsystem changed to: "81. Bundled Packages"
- title changed to: ""subst" processes "return" incorrectly"
- type changed to: "Bug"