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

echo: prints version when input is "--ver" different from GNU echo #5910

Closed
SaHHiiLL opened this issue Jan 29, 2024 · 1 comment · Fixed by #5911
Closed

echo: prints version when input is "--ver" different from GNU echo #5910

SaHHiiLL opened this issue Jan 29, 2024 · 1 comment · Fixed by #5911
Labels

Comments

@SaHHiiLL
Copy link
Contributor

GNU echo

$ /bin/echo --ver
--ver

coreutills

$ cargo run --features unix -- echo --ver
echo 0.0.24

other coreutils have the same behavior, but they match the output of their counterparts, tested ls, touch and sleep

@tertsdiepraam
Copy link
Member

Oh that's funny 😄 I'll try to fix this in my new argument parser too. For the clap parser, I think this is just a matter of removing infer_long_args. Let me give that a shot.

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.

3 participants