coreutils
coreutils copied to clipboard
dd: interpret Stdin as File to seek it
It fixes a test including dd from tests/misc/head-c.sh.
Corresponding issue: https://github.com/uutils/coreutils/issues/3008#
I expected that tests/dd/not-rewound.sh would also be fixed, but unfortunately, it is not the case. It seems that https://github.com/uutils/coreutils/issues/3626 is still relevant.
Background
An attempt to skip bytes by read_skip leads to consuming all stdin by a rust application. Another approach to tackle this is to interpret stdin as File. More details in https://github.com/uutils/coreutils/issues/3008#issuecomment-1136024931
Could you please add a test?
We have plenty of tests in tests/by-util/test_*
Could you please fix that issue? thanks
error[E0425]: cannot find value `i` in this scope
--> src\uu\dd\src/dd.rs:93:12
|
93 | Ok(i)
| ^ not found in this scope
Could you please fix that issue? thanks
error[E0425]: cannot find value `i` in this scope --> src\uu\dd\src/dd.rs:93:12 | 93 | Ok(i) | ^ not found in this scope
Fixed.
a bunch of tests are broken, could you please have a look? thanks
Yeah. Right. I described why the tests fail in the previous comment. I will try to debug it more, but if there is someone, who is more proficient in the project, I can chat with, that would probably help to fix the issue faster.
@ArtemSkrebkov ping?
No luck since the last debugging attempt. I believe, we probably can close until better times.
Closing until better times :)