Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d9e6709c79d12e0028430734f83fc88d8770cd46fab841b0b060ddbe8c464834
Ticket: cbbd2511cee8b8b8b03342577df9e181a27c5ba5
tclWinPipe DETACHED_PROCESS vs. CREATE_NO_WINDOW
User & Date: teclab on 2026-07-03 21:22:42
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    Dear Core Team,
    
    In Windows wish 8.6 if you try the following:
    
    exec powershell.exe -NoProfile -Command "dir"
    
    This will return nothing.
    With powershell this whole redirection fails. One has to compile tclWinPipe.c with:
    
    createFlags = CREATE_NO_WINDOW;
    
    It seems that with no console attached the powershell does not even run the command, failing silently:
    
    exec powershell.exe -NoProfile -Command "dir | Out-File -Encoding utf8 C:/dir.txt"
    
    The above command does not even generate the file.
    
    Note that with tclsh all the above works, it only in wish that fails.
    
    TCL 9 does have the same issue.
    
  5. foundin changed to: "8.6 and 9.x"
  6. is_private changed to: "0"
  7. login: "teclab"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "6bac77948ef91492d41f70b5be732fdb60f91282"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "teclab"
  14. subsystem changed to: "69. Other"
  15. title changed to: "tclWinPipe DETACHED_PROCESS vs. CREATE_NO_WINDOW"
  16. type changed to: "Patch"