coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

df: df-output.sh fails because of error message generated by clap

Open cakebaker opened this issue 3 years ago • 1 comments
trafficstars

df-output.sh (from the GNU coreutils test suite) tests, for example, whether df -i --output causes a "mutually exclusive options" error and shows a corresponding error message.

With uutils df, clap is used to handle mutually exclusive options. And it generates an error message that's different than what the GNU coreutils test suite expects.

I see two ways to resolve this issue: simply ignore df-output.sh, or handle mutually exclusive options manually without clap.

cakebaker avatar May 28 '22 13:05 cakebaker

There is a third option (which I prefer in this case), which is to replace the text that GNU expects with the text we print. We've already done this for a few utils at the end of util/build-gnu.sh.

tertsdiepraam avatar May 28 '22 13:05 tertsdiepraam

Fixed in https://github.com/uutils/coreutils/pull/5452

cakebaker avatar Oct 26 '23 09:10 cakebaker