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

dd: error message on empty arg does not match GNU #3363

Closed
jfinkels opened this issue Apr 4, 2022 · 2 comments · Fixed by #3831
Closed

dd: error message on empty arg does not match GNU #3363

jfinkels opened this issue Apr 4, 2022 · 2 comments · Fixed by #3831
Labels

Comments

@jfinkels
Copy link
Collaborator

jfinkels commented Apr 4, 2022

The error message printed when dd is given an argument of, for example, bs= does not match that of GNU dd and is less clear anyway.

GNU dd:

$ dd bs=
dd: invalid number: ‘’

uutils dd:

$ ./target/release/dd bs=
./target/release/dd: Unrecognized byte multiplier -> 
@jfinkels jfinkels added the U - dd label Apr 4, 2022
@p-fuchs
Copy link
Contributor

p-fuchs commented Aug 15, 2022

Message displayed when executing dd iflag= is:

dd: invalid input flag: ‘’
Try 'dd --help' for more information.

Should rust implementation also display Try 'dd...?

@jfinkels
Copy link
Collaborator Author

I think you are referring to the following difference between GNU dd and uutils dd; if so then yes, let's match GNU dd in this case as well:

GNU dd:

$ dd iflag=
dd: invalid input flag: ‘’
Try 'dd --help' for more information.

uutils dd:

$ ./target/debug/dd iflag=
./target/debug/dd: Unrecognized iflag=FLAG or oflag=FLAG -> 

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