delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/14/23:58:56

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Robert McNulty Junior" <bmj2001 AT bellsouth DOT net>
To: <cygwin AT cygwin DOT com>
Subject: qRE: problems with the "%h" flag to the "date" command
Date: Tue, 14 Jan 2003 22:58:54 -0600
Message-ID: <KPEPLCKFOMHAHJPDILBPAEEHCAAA.bmj2001@bellsouth.net>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
Importance: Normal
In-Reply-To: <20030115043754.GA1416@scripps.edu>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

Same results here.
Perhaps a bug in Date.

-----Original Message-----
From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf
Of David A. Case
Sent: Tuesday, January 14, 2003 10:38 PM
To: cygwin AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019