Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cd0c8b787155550eef12e3b299cb768f1baf4ea9
Ticket: d2b144e4612c10f870ee496c1d38a0634f4e7906
It's not possible to pass customized environment variables to child process
User & Date: anonymous on 2015-06-05 23:21:40
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Hi,
    there is no easy way to pass customized environment variables to a child process. 
    
    When tcl use "exec" or "open" with pipes, all the environment variables are inherited to the child process. But it's not possible to set in advance environment variables different from the parent process and exclusive for that child process. For example there is no -env option in the "exec" command to pass a list of customized environment variables for the child process.
    
    It seems that the only way is to set temporarily environment variables in ::env, spawn a new child process, and then restore that changed environment variables to their original value.
    
  5. foundin changed to: "8.6"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "1c4b6cdb98c9dfc4d1e74018f3f4efa00ad217e2"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to:
    It's not possible to pass customized environment variables to child process
    
  16. type changed to: "Bug"