Skip to content

timeout 0.15.1 does not execute the requested command #148

Closed

Description

@caomengxuan666

Environment

  • WinuxCmd: 0.15.1
  • Windows 11
  • Shell: Winuxsh

Reproduction

Run:

timeout -k 5s 20s npm start

Actual behavior

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.

Activity

  1. caomengxuan666 commented on Aug 14, 2026

    @caomengxuan666
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions