From b02c170d2f936f02c334b63a3f56b1e178c823c6 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 16 Sep 2005 17:53:40 +0000 Subject: (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. --- tests/misc/date | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/misc/date') diff --git a/tests/misc/date b/tests/misc/date index 961d57c55..97d529de9 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'}], ); -- cgit v1.2.3-54-g00ecf