Overview
| Artifact ID: | d79e17406d105d95401091841dc8f9c065920e96 |
|---|---|
| Ticket: | 219411ffffffffffffffffffffffffffffffffff
writing scripts from scripts - backslash substitution in {.. |
| User & Date: | nobody on 2000-10-26 05:12:35 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed 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 changed to: "obsolete: 8.4a1"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to:
writing scripts from scripts - backslash substitution in {.. - type changed to: "RFE"