Ben Wiederhake

Results 121 issues of Ben Wiederhake

This PR improves the tests: - Two tests were unnecessarily lax (`test_tee_no_more_writeable_1` ignored memory problems, the new `test_check_unique_combined` exercises an input that wasn't possible before clap#2624) - Four tests had...

When copying an old file over a new file, cp still needs to ask: `-u` is `--update=older`, which according to the man page only influences which files are *considered* for...

This fixes several GNU behavior bugs around repeated arguments. In my eyes, the parsing code is now simpler, too. Note in particular that `args_override_self` would *NOT* work here, since it...

The testcase tries to write to the stdin pipe while the process under test is simultaneously exiting with an error code. Naturally, this is a race, and we should ignore...

`test_round_robin_limited_file_descriptors` is flaky and [causes real problems](https://github.com/uutils/coreutils/pull/6012#issuecomment-1962974453). The test imposes `.limit(Resource::NOFILE, 9, 9)`, that's the point of the test. On my machine, this number can be lowered to 5; it...

This is a GNU behavior bug (i.e. this is a bug because GNU behaves differently, even though uutils' current behavior could be considered reasonable, too). Example: ```console $ echo -n...

U - basenc

Example: ```console $ chmod -c --reference README.md README.md # GNU $ cargo run --all-features chmod -c --reference README.md README.md mode of 'README.md' changed from 0644 (rw-r--r--) to 100644 (rw-r--r--) $...

U - chmod

This was a GNU behavior bug: ```console $ LC_ALL=C shuf -er shuf: no lines to repeat [$? = 1] $ cargo run shuf -er # old, bad (unexpected success) $...

This should lower memory consumption, and fixes OOM in some scenarios. Before, buggy behavior: ```console $ yes | tr -ds a b | head -n5 # GNU y y y...

It seems that I accidentally introduced an off-by-one error in #5980. My bad! This PR: - Fixes the off-by-one error by using the standard type `RangeInclusive`, instead of passing `(usize,...