Skip to content

fix: execute timeout commands on Windows - #149

Merged
caomengxuan666 merged 1 commit into
mainfrom
fix/issue-148-timeout
Aug 14, 2026
Merged

caomengxuan666 merged 1 commit into
mainfrom
fix/issue-148-timeout

Conversation

@caomengxuan666

@caomengxuan666 caomengxuan666 commented Aug 14, 2026 •

Copy link
Copy Markdown
Member

Fixes #148.

  • Execute normal child commands and preserve their exit status.

  • Resolve and launch .cmd/.bat commands through COMSPEC, including npm-style commands.

  • Use a Windows Job Object to clean up child processes on timeout.

  • Remove the stale help text claiming timeout does not execute commands.

  • Force the test process to use the English fallback without changing the caller shell environment.

  • Validation: scripts/build-with-vs.ps1 -Target winuxcmd-tests -BuildDir build-vs -SkipConfigure; timeout.* 24/24 passed with WINUX_LANG=zh-CN inherited.

@caomengxuan666
caomengxuan666 merged commit 8775cb9 into main Aug 14, 2026
7 checks passed
@caomengxuan666
caomengxuan666 deleted the fix/issue-148-timeout branch August 14, 2026 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

timeout 0.15.1 does not execute the requested command

1 participant