Skip to content

shuf: Accept multiple occurrences of head count argument #3328

@ghost

Description

GNU accepts multiple occurrences of head count argument and chooses the min value among them.

uutils does not accept multiple occurrences of head count argument.

GNU

shuf -i10-200 -n5 -n10
162
144
165
96
62

uutils

./target/debug/shuf -i10-200 -n5 -n10
error: The argument '--head-count <COUNT>' was provided more than once, but cannot be used multiple times

USAGE:
    ./target/debug/shuf [OPTION]... [FILE]
    ./target/debug/shuf -e [OPTION]... [ARG]...
    ./target/debug/shuf -i LO-HI [OPTION]...

For more information try --help

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