Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 36cbd16a55e16d288b529108be59c6a65cc4b550
Ticket: 768664ffffffffffffffffffffffffffffffffff
TclCreatePipeline still alters argv
User & Date: andreas_kupries on 2007-09-06 00:17:25
Changes

  1. assignee changed to: "dgp"
  2. icomment:
    Logged In: YES 
    user_id=75003
    Originator: NO
    
    A quick source-dive and check of tclPipe.c shows that the argv argument of TCP is modified by it in 4 places, lines 697, 876, 896, and 899.
    
    I am not sure if any of these are a bug. Currently I do not believe so. The base logic seems to be that '|'s are NULLed, and then the relevant parts of argv are used to spawn the subprocess with its arguments. And regarding the redirections, these seem to be processed by the function to point to Tcl channels, so of course they are removed so that the spawned processes do not see them. As they do not have to handle the redirections on their own. I fail to see the problem with that.
    
    Or does the submitter simply wants us to operate on a copy of argv (it is declared as 'const char**'), so that the caller of TCP doesn't see alterations ?
    
    
    
  3. login: "andreas_kupries"
  4. mimetype: "text/plain"
  5. username: "andreas_kupries"