qRE: problems with the "%h" flag to the "date" command
Robert McNulty Junior
bmj2001@bellsouth.net
Wed Jan 15 09:25:00 GMT 2003
Same results here.
Perhaps a bug in Date.
-----Original Message-----
From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf
Of David A. Case
Sent: Tuesday, January 14, 2003 10:38 PM
To: cygwin@cygwin.com
Subject: problems with the "%h" flag to the "date" command
Several of my scripts are failing because "date" doesn't seem to properly
recognize the "%h" flag. According to the docs:
% man date
NAME
date - print or set the system date and time
..
%b locale's abbreviated month name (Jan..Dec)
..
%h same as %b
..
But here is my experience:
% date +%d%b%y
14Jan03
% date +%d%h%y
1403
The "%h" argument works as advertised on RedHat Linux, and on several
Unices. So, this has the earmarks of a cygwin-specific problem.
I could not find any mention of this at the FAQ or mailing lists. My
cygwin installation (Windows XP Pro) is no more than a few days old
(cygcheck output attached...)
There is an obvious work-around, but not one that I can see that avoids
propagating changes (%h -> %b) back to Unix origins of a reasonably large
number of scripts.
..thanks!...dave case
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list