Skip to content

stat: should fail without arguments #5928

@cakebaker

Description

@cakebaker

When running stat without arguments, GNU stats fails:

$ /usr/bin/stat
/usr/bin/stat: missing operand
Try '/usr/bin/stat --help' for more information.
$ echo $?
1

uutils stat, on the other hand, doesn't output anything and doesn't fail:

$ cargo run --features=unix stat
$ echo $?
0

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