Skip to content
Tcl Source Code History Of Ticket 219411ffffffffff
Login

History Of Ticket 219411ffffffffff

Artifacts Associated With Ticket 219411ffffffffff

  1. Ticket change [d79e17406d] (rid 124022) by nobody on 2000-10-26 05:12:35:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
      
      
      
      
    4. foundin initialized to: "obsolete: 8.4a1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to:
      writing scripts from scripts - backslash substitution in {..
      
    11. type initialized to: "RFE"
  2. Ticket change [f8c8e54178] (rid 91603) by dkf on 2000-11-06 23:28:41:

    1. assignee changed to: "dkf"
    2. closedate changed to: "2000-11-06T16:28:41"
    3. closer changed to: "dkf"
    4. 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...  :^(
      
      
    5. login: "dkf"
    6. mimetype: "text/plain"
    7. resolution changed to: "Wont Fix"
    8. status changed to: "Closed"
    9. username: "dkf"
  3. Ticket change [ff4849cb14] (rid 108729) by dgp on 2001-04-20 02:52:14:

    1. assignee changed to: "nobody"
    2. foundin changed to: "None"
    3. status changed to: "Open"
    4. subsystem changed to: "None"
  4. Ticket change [d75af6c39f] (rid 123970) by dgp on 2001-04-20 02:53:39:

    1. closedate changed to: "2001-04-19T19:53:39"
    2. closer changed to: "dgp"
    3. status changed to: "Closed"
    4. subsystem changed to: "45. Parsing and Eval"