-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
dd: should error on reading stdin when iflag=directory option is given #5900
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
Comments
Hello @jfinkels, I tested this issue on current main And get output $ : | ./target/debug/coreutils dd iflag=directory
dd: feature not implemented on this system -> directory May be this issue to close? |
I should have mentioned in the description that I am testing on Ubuntu, so the |
This does seem to error as expected when a file is redirected to stdin:
(The error message differs from that of GNU dd though) |
Ah, this was partially fixed by #6084. That change actually fixed the issue in the GNU test file |
Make `dd` unconditionally error if `iflag=directory` and the input file is `stdin`. Fi 8000 xes uutils#5900
Make `dd` error if `iflag=directory` and the input file is not a directory, even if the directory is redirected to `stdin` as in dd <. Fixes uutils#5900
Make `dd` error if `iflag=directory` and the input file is not a directory, even if the directory is redirected to `stdin` as in dd <. Fixes uutils#5900
Make `dd` error if `iflag=directory` and the input file is not a directory, even if the directory is redirected to `stdin` as in dd <. Fixes uutils#5900
Make `dd` error if `iflag=directory` and the input file is not a directory, as in : | dd iflag=directory Fixes uutils#5900
Uh oh!
There was an error while loading. Please reload this page.
GNU coreutils dd 9.4.113-c01ee
uutils dd:
Test case found in GNU test suite
tests/dd/misc.sh
.Edit: tested on Ubuntu 20.04, where the
iflag=directory
option is allowed.The text was updated successfully, but these errors were encountered: