8000 `dd` fails on `tests/dd/not-rewound.sh` · Issue #3626 · uutils/coreutils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

dd fails on tests/dd/not-rewound.sh #3626

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

Closed
sylvestre opened this issue Jun 13, 2022 · 7 comments
Closed

dd fails on tests/dd/not-rewound.sh #3626

sylvestre opened this issue Jun 13, 2022 · 7 comments
Labels

Comments

@sylvestre
Copy link
Contributor

With the test case, it show b - with gnu, it shows bde:

export C=./target/debug/coreutils
echo abcde > in
echo "bde" > ref
($C dd skip=1 count=1 bs=1; $C dd skip=1 bs=1) < in > out 2> /dev/null 
diff -u ref out

comment the first line to come back on GNU

To run it:
bash util/run-gnu-test.sh tests/dd/not-rewound.sh

@sylvestre
Copy link
Contributor Author

@jfinkels rings a bell ?

@jfinkels
Copy link
Collaborator

Yes! see #3008 (comment)

@sylvestre
Copy link
Contributor Author

oh, thanks, it is a dup then :)

@sylvestre sylvestre closed this as not planned Won't fix, can't repro, duplicate, stale Jun 14, 2022
@sylvestre sylvestre moved this to Done in GNU Compatibility Jun 14, 2022
@jfinkels
Copy link
Collaborator

Reopening as this seems to be broken still:

On GNU v8.30:

$ (dd skip=1 count=1 bs=1; dd skip=1 bs=1) < in > out 2> /dev/null && cat out
bde

On uutils dd (main branch, commit 0a385ee)

$ (./target/release/dd skip=1 count=1 bs=1; ./target/release/dd skip=1 bs=1) < in > out 2> /dev/null && cat out
de

@jfinkels jfinkels reopened this Nov 17, 2023
@jfinkels
Copy link
Collaborator

Another clue here is that this works as expected if stdout is not redirected to a file:

$ (./target/release/dd skip=1 count=1 bs=1; ./target/release/dd skip=1 bs=1) < in 2> /dev/null
bde

@jfinkels
Copy link
Collaborator

I think #4542 is getting at this issue.

@jfinkels jfinkels linked a pull request Nov 27, 2023 that will close this issue
@RenjiSann
Copy link
Collaborator
RenjiSann commented Feb 28, 2025

Fixed by #7189

Using current main HEAD (commit d14ece90):

$ (dd skip=1 count=1 bs=1; dd skip=1 bs=1) < in > out 2> /dev/null && cat out
bde%
$ (./target/debug/dd skip=1 count=1 bs=1; ./target/debug/dd skip=1 bs=1) < in > out 2> /dev/null && cat out
bde%               

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants
0