You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
timeout 0.15.1 does not execute the requested command #148
WinuxCmd prints an unrecognized option error, or with a simpler command it prints the timeout help and exits without starting the command. The timeout help states that this is a simplified implementation and that it does not actually execute the command.
Expected behavior
timeout DURATION COMMAND [ARG...] should execute COMMAND, terminate it after the duration, and return the command or timeout status. GNU-compatible options such as -k and --kill-after should be parsed without being forwarded as command arguments.
This prevents reliable process-lifecycle smoke tests and makes common POSIX scripts fail under Winuxsh. If full process control is not available yet, the command should fail explicitly as unsupported instead of accepting the syntax and silently not executing the command.
Fixed in PR #149: timeout now executes normal commands, launches .cmd/.bat commands through COMSPEC (including npm-style commands), preserves exit statuses, and cleans up child processes with a Windows Job Object.
Activity
caomengxuan666 commentedon Aug 14, 2026
Fixed in PR #149: timeout now executes normal commands, launches .cmd/.bat commands through COMSPEC (including npm-style commands), preserves exit statuses, and cleans up child processes with a Windows Job Object.