Ben Wiederhake

Results 121 issues of Ben Wiederhake

We currently fail the GNU test `test/test-diag`, which simply asserts that `test -a arg` outputs the error message `'-a': unary operator expected`. However, this is unfixable with our current parser....

U - test

Discovered during #6176. Example: ```console $ rm -rf target/test/; mkdir target/test/; cp LICENSE "" README.md target/test/; echo "EXITCODE GNU: $?"; ls -l target/test/; echo "(end)" cp: cannot stat '': No...

U - cp

The empty string is apparently a valid name for an environment variable, even though I strongly expect that it is used only for malicious purposes: ```console $ env =a env...

U - env

This PR implements a feature that is explicitly tested by the GNU tests (`touch/now-owned-by-other`). Sadly, it also reveals how difficult it is to pull off a specific platform-dependent syscall-trick in...

cksum has some really weird and funky implicit tags going on, see https://github.com/uutils/coreutils/pull/6256 So let's figure out what *exactly* cksum is doing. ```console $ ../gnu/src/cksum -a md5 --tag README.md #...

U - cksum

```console $ cat test.txt > do > not > format > these > words > =but > =these > =words > =please > EOF $ ../gnu/src/fmt -p= test.txt do not...

U - fmt

`ln` can be used to overwrite a link like so: `ln -sfn target link_name`, because: ``` ln [OPTION]... [-T] TARGET LINK_NAME ``` Here's a minimal reproducer: ```console $ mkdir a...

U - ln

When complementing, we basically translate all bytes not mentioned in STRING1 to bytes in STRING2. This means that only the first 256-len(ARRAYISH1) bytes of ARRAY2 can be accessed. GNU `tr`...

U - tr

In a `STRING` with 256 given characters and `[y*]`, this "repeated character" should expand to the empty string `""`. With only 255 given characters, it should expand to `"y"`, i.e....

U - tr

```console $ echo -en '\001amp\0376\0377' | tr $'a\xfe\xffz' "01234" | hd 00000000 01 30 6d 70 31 32 |.0mp12| 00000006 $ echo -en '\001amp\0376\0377' | cargo run tr $'a\xfe\xffz' "01234"...

U - tr