From: Jim Meyering Date: Fri, 16 Sep 2005 17:53:40 +0000 (+0000) Subject: (subfmt-up1): Put quotes around format string X-Git-Tag: v5.90~185 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b02c170d2f936f02c334b63a3f56b1e178c823c6;p=thirdparty%2Fcoreutils.git (subfmt-up1): Put quotes around format string to protect `^' from interpretation by some shells. Add a use of OUT_SUBST to compensate for Solaris strftime's slightly different formatting of %c. --- diff --git a/tests/misc/date b/tests/misc/date index 961d57c55c..97d529de92 100755 --- a/tests/misc/date +++ b/tests/misc/date @@ -242,7 +242,10 @@ my @Tests = # Test the combination of the to-upper-case modifier (^) and a conversion # specifier that expands to a string containing lower case characters. - ['subfmt-up1', '-d "1999-12-08 7:30" +%^c', + ['subfmt-up1', '-d "1999-12-08 7:30" "+%^c"', + # Solaris 5.9 prints 'WED DEC 08 07:30:00 1999', while + # most others print 'WED DEC 8 07:30:00 1999'. + {OUT_SUBST => 's/ [ 0]8.*//'}, {OUT=>'WED DEC 8 07:30:00 1999'}], );