Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 49d3efb980aec9cc254b9f62bb059d71e75e92a1
Ticket: 554068ffffffffffffffffffffffffffffffffff
Windows: [exec] doesn't quote special chars
User & Date: davygrvy on 2004-02-26 01:24:18
Changes

  1. icomment:
    Logged In: YES 
    user_id=7549
    
    The real problem here is that cygwin's cat.exe doesn't parse 
    its commandline properly.  Hacks for cat can be added to the 
    core, but then all other uses of '{' in the commandline string 
    will be parsed improperly by all other applications including 
    tclsh and wish themselves.  The pass-thru must be identical.
    
    echo.tcl:
    foreach arg $argv {
    puts $arg
    }
    
    % exec [info name] echo.tcl foo \{\[ bar
    foo
    {[
    bar
    %
    
    If the above can not be identical, then cat.exe is in error, not 
    us.  Before the fix from yesterday that was added to the 84 
    branch, { would have had a \ in front of it that the MS 
    parse_cmdline routine would not strip off.  Again, cat.exe is in 
    error, not us.
    
    
  2. login: "davygrvy"
  3. mimetype: "text/plain"
  4. username: "davygrvy"