Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 93c2a273f75ede8afabe297ecaad70b0dd88b9d2
Ticket: 218422ffffffffffffffffffffffffffffffffff
Exec command escapes quotes
User & Date: nobody on 2000-10-26 00:57:25
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 5825 Bug
    Version: 8.3.1
    SubmitDate: '2000-06-06'
    LastModified: '2000-06-06'
    Severity: SER
    Status: Closed
    Submitter: techsupp
    ChangedBy: hobbs
    OS: All Windows
    Machine: Windows NT SP5, 6a, Win2000
    FixedDate: '2000-10-25'
    ClosedDate: '2000-06-06'
    
    
    Name:
    Evan Rempel
    
    ReproducibleScript:
    The exec command escapes quotes when embedded in the sub-commands arguments.
    
    exec cmd.exe /C echo "one" t"w"o
    one t\"w\"o
    
    exec cmd.exe /C echo {"one"} {t""w""o}
    \"one\" t\"w\"o
    
    ObservedBehavior:
    This is undesirable because some command line commands require arguments to be quoted in various forms.
    
    command "first command" name="some other data"
    
    DesiredBehavior:
    The quotes should not be escaped, 
    
    exec cmd.exe /C echo {"one"} {t""w""o}
    "one" t"w"o
    
    
    
    This is just the visual representation, there are no physical
    \'s in the text:
    
    (tkcon) 49 % set a [exec $env(ComSpec) /c echo "one" t"w"o]
    one t\"w\"o
    (tkcon) 50 % string length [lindex $a 1]
    5
     
    -- 06/06/2000 hobbs
    
  4. foundin changed to: "obsolete: 8.3.1"
  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: "Exec command escapes quotes"
  11. type changed to: "Bug"