From: Collin Funk Date: Wed, 17 Jun 2026 03:20:36 +0000 (-0700) Subject: tests: date: test -d with only a minus sign X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=inline;p=thirdparty%2Fcoreutils.git tests: date: test -d with only a minus sign * tests/date/date.pl (@Tests): Add the test case. --- diff --git a/tests/date/date.pl b/tests/date/date.pl index 95547e8b10..c685c3d3b8 100755 --- a/tests/date/date.pl +++ b/tests/date/date.pl @@ -423,6 +423,7 @@ my @Tests = # A bare sign is the empty relative offset: midnight today. ['bare-plus', "-d '+' '+%H:%M:%S'", {OUT=>"00:00:00"}], + ['bare-minus', "-d '-' +%H:%M:%S", {OUT=>"00:00:00"}], # A trailing token after an \@epoch operand is an error. ['epoch-trailing', "-d '\@5 UTC' '+%T'",