Skip to content

timeout: words after DURATION are still parsed as options #15188

In review

Description

@SichenLiang

GNU treats the word after DURATION as COMMAND, even when it begins with -. uutils continues parsing options there.

Here, coreutils is the uutils multicall binary built with --features unix.

$ coreutils timeout 5 -s KILL true

uutils parses -s KILL, runs true, and exits 0. GNU tries to run a command named -s and exits 127. Likewise, timeout 5 -X is an option error with status 125 in uutils, but a missing command with status 127 in GNU.

I have a fix ready and will open the PR soon.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions