cbwin
cbwin copied to clipboard
a cmd-like behavior distinguishing between console / GUI target programs might be useful
For example in cmd "notepad" starts notepad and do not wait for its termination, while cmd waits for termination of console programs.
However, this is not trivial to implement given how Win32 processes are managed in jobs with the current policy of terminating them on exit of the initial win32 process (except with silent-breakaway:1, which is used by wstart) Basically I would probably have to check myself if the target is GUI or console (at least if the termination policy remains)
Note: an advantage in detecting GUI programs would also be that an automatic fallback to %USERPROFILE% as their cwd in case the caller is not called from DriveFs would likely not be dangerous for them.