Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stat: should fail without arguments #5928

Closed
cakebaker opened this issue Feb 1, 2024 · 1 comment · Fixed by #5935
Closed

stat: should fail without arguments #5928

cakebaker opened this issue Feb 1, 2024 · 1 comment · Fixed by #5935
Labels

Comments

@cakebaker
Copy link
Contributor

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
@biplab5464
Copy link
Contributor

i will try to fix this issue

biplab5464 pushed a commit to biplab5464/coreutils that referenced this issue Feb 2, 2024
@cakebaker cakebaker linked a pull request Feb 2, 2024 that will close this issue
biplab5464 pushed a commit to biplab5464/coreutils that referenced this issue Feb 2, 2024
biplab5464 pushed a commit to biplab5464/coreutils that referenced this issue Feb 2, 2024
biplab5464 pushed a commit to biplab5464/coreutils that referenced this issue Feb 2, 2024
cakebaker pushed a commit that referenced this issue Feb 2, 2024
* stat: should fail without arguments #5928

* style and lint issue  stat: should fail without arguments #5928

* style and lint issue  stat: should fail without arguments #5928

* style and lint 2 issue  stat: should fail without arguments #5928

---------

Co-authored-by: biplab5464 <biplab5464@outlook.com>
ysthakur pushed a commit to ysthakur/coreutils that referenced this issue Feb 27, 2024
* stat: should fail without arguments uutils#5928

* style and lint issue  stat: should fail without arguments uutils#5928

* style and lint issue  stat: should fail without arguments uutils#5928

* style and lint 2 issue  stat: should fail without arguments uutils#5928

---------

Co-authored-by: biplab5464 <biplab5464@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants