tests/misc/coreutils.sh: Fail with invalid binary name by oech3 · Pull Request #10258 · uutils/coreutils
marked this pull request as draft
oech3
mentioned this pull request
oech3
marked this pull request as ready for review
oech3
changed the title
coreutils: Fail with invalid binary name
tests/misc/coreutils.sh: Fail with invalid binary name
oech3 referenced this pull request in coreutils/coreutils
Setup $ ln -nsf src/coreutils foo Before $ ./foo; echo $? foo: unknown program ‘foo’ Try './foo --help' for more information. 1 ./foo --version; echo $? coreutils (GNU coreutils) 9.9.172-01993 0 After $ ./foo; echo $? coreutils: unknown program 'foo' 1 $ ./foo --version; echo $? coreutils: unknown program 'foo' 1 * src/coreutils.c (main): Don't process options if we don't know they're intended for the multi-call binary. Otherwise `foo --version` would return true, even though foo was symlinked to the multi-call binary, but not supported. * tests/misc/coreutils.sh: Add test cases. * NEWS: Mention the change in behavior.
oech3
marked this pull request as draft
oech3
marked this pull request as ready for review
oech3
marked this pull request as draft
oech3 referenced this pull request in coreutils/coreutils
oech3
mentioned this pull request
oech3
marked this pull request as ready for review
oech3
mentioned this pull request