Overview
| Artifact ID: | 36cbd16a55e16d288b529108be59c6a65cc4b550 |
|---|---|
| Ticket: | 768664ffffffffffffffffffffffffffffffffff
TclCreatePipeline still alters argv |
| User & Date: | andreas_kupries on 2007-09-06 00:17:25 |
Changes
- assignee changed to: "dgp"
- 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 ?
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"