Artifacts Associated With Ticket 219411ffffffffff
Ticket change [d79e17406d] (rid 124022) by nobody on 2000-10-26 05:12:35:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 6357 Bug Version: 8.4a1 SubmitDate: '2000-10-16' LastModified: '2000-10-25' Severity: MED Status: UnAssn Submitter: techsupp OS: Linux FixedDate: '2000-10-25' ClosedDate: '2000-10-25' Name: John Ellson CVS: Oct 12, 2000. 3am (patchlevel 8.4a2) ReproducibleScript: #!/usr/local/bin/tclsh8.4 ### this backslash gets lost set script {#!/bin/sh # the next line is a comment in tcl, but executable by sh exec wish "$0" ${1+"$@"} puts "hello world" } puts $script ### these backslashes remain doubled set script {#!/bin/sh # the next line is a comment in tcl, but executable by sh \\ exec wish "$0" ${1+"$@"} puts "hello world" } puts $script ObservedBehavior: I'm trying to write a script from a tcl script, including the magic initial construct: #!/bin/sh # the next line is a comment in tcl, but executable by sh exec wish "$0" ${1+"$@"} tcl is substituting the trailing backslash even though the string is in braces. DesiredBehavior: no backslash substitutions in braced strings. - foundin initialized to: "obsolete: 8.4a1"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to:
writing scripts from scripts - backslash substitution in {.. - type initialized to: "RFE"
Ticket change [f8c8e54178] (rid 91603) by dkf on 2000-11-06 23:28:41:
- assignee changed to: "dkf"
- closedate changed to: "2000-11-06T16:28:41"
- closer changed to: "dkf"
- icomment:
Tcl is defined to behave this way, and I'd be extremely hesitant to change it since it would probably adversely affect many other scripts. You'll just have to express the string constant in a different way... :^(
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Wont Fix"
- status changed to: "Closed"
- username: "dkf"
Ticket change [ff4849cb14] (rid 108729) by dgp on 2001-04-20 02:52:14:
- assignee changed to: "nobody"
- foundin changed to: "None"
- status changed to: "Open"
- subsystem changed to: "None"
Ticket change [d75af6c39f] (rid 123970) by dgp on 2001-04-20 02:53:39:
- closedate changed to: "2001-04-19T19:53:39"
- closer changed to: "dgp"
- status changed to: "Closed"
- subsystem changed to: "45. Parsing and Eval"