From da1d2895549a8009b4449f22cb235eb7f4803760 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Tue, 16 Jun 2026 20:20:36 -0700 Subject: [PATCH] tests: date: test -d with only a minus sign * tests/date/date.pl (@Tests): Add the test case. --- tests/date/date.pl | 1 + 1 file changed, 1 insertion(+) 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'", -- 2.47.3