Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f8813ffff6da6ba88aae7205a655bea7ae2266db
Ticket: 469618ffffffffffffffffffffffffffffffffff
using [exec] for WinGUI apps is invalid.
User & Date: davygrvy on 2001-10-09 19:03:27
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Windows GUI applications are detached from a console 
    and do not support pipes.  [exec] should know this.
    
    Here's what I added:
    C:\WINNT\system32>tclsh84
    % exec notepad
    C:\WINNT\system32\notepad.exe is a GUI application 
    that doesn't support pipes: broken pipe
    % puts $errorCode
    POSIX EPIPE {broken pipe}
    %
    
    I feel the errorCode is conceptually correct.  I also 
    added deeper checks into the PE header of the file for 
    checking if the file truly is executable.  I also 
    added a check for the .cmd extension which is 
    analogous to .bat
    
    The best way to launch GUI applications is with 
    ShellExecute() rather than CreateProcess().  [exec] 
    can not support pipes to GUI applications and i feel 
    it should be disabled.  This would of course need a 
    new command for launching GUI apps...
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "davygrvy"
  9. subsystem changed to: "25. Channel System"
  10. title changed to: "using [exec] for WinGUI apps is invalid."
  11. type changed to: "Patch"