From: Sylvestre Ledru Date: Sun, 5 Jul 2026 18:40:00 +0000 (+0200) Subject: tests: numfmt: check --header does not swallow a following operand X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=68f15d9128f1e6c7f62e8616e7d966acff3495de;p=thirdparty%2Fcoreutils.git tests: numfmt: check --header does not swallow a following operand * tests/numfmt/numfmt.pl (header-10): New test verifying that --header, which only accepts an argument via '=', does not consume a following operand as its value. https://github.com/uutils/coreutils/pull/13273 Link: https://github.com/coreutils/coreutils/pull/312 --- diff --git a/tests/numfmt/numfmt.pl b/tests/numfmt/numfmt.pl index 1c64319e40..827d5ea3f6 100755 --- a/tests/numfmt/numfmt.pl +++ b/tests/numfmt/numfmt.pl @@ -507,6 +507,11 @@ my @Tests = {IN_PIPE=>"hello\nworld\n"}, {OUT=>"hello\nworld"}], + # --header takes an argument only via '=': a following operand + # must not be swallowed as the option's value. + ['header-10', '--header 7 8', + {OUT=>"7\n8"}], + ## human_strtod testing