Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d79e17406d105d95401091841dc8f9c065920e96
Ticket: 219411ffffffffffffffffffffffffffffffffff
writing scripts from scripts - backslash substitution in {..
User & Date: nobody on 2000-10-26 05:12:35
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.4a1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to:
    writing scripts from scripts - backslash substitution in {..
    
  11. type changed to: "RFE"