summaryrefslogtreecommitdiff
path: root/tests/misc/date
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-09-16 17:53:40 +0000
committerJim Meyering <jim@meyering.net>2005-09-16 17:53:40 +0000
commitb02c170d2f936f02c334b63a3f56b1e178c823c6 (patch)
treeb495a3d79428f4f0e49d28c6e9e03e9f6e529970 /tests/misc/date
parent7dd6db69afe030eabdbd7dc2888f30b0c22bfbff (diff)
downloadcoreutils-b02c170d2f936f02c334b63a3f56b1e178c823c6.tar.xz
(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.
Diffstat (limited to 'tests/misc/date')
-rwxr-xr-xtests/misc/date5
1 files changed, 4 insertions, 1 deletions
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'}],
);