Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Feb 2000 00:58:13 +0100 (CET)
From:      Christian Weisgerber <naddy@mips.rhein-neckar.de>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/16813: "date -v May" fails
Message-ID:  <200002182358.AAA80549@bigeye.rhein-neckar.de>

next in thread | raw e-mail | index | archive | help

>Number:         16813
>Category:       bin
>Synopsis:       "date -v May" fails
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 18 16:00:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Christian Weisgerber
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:

>Description:

The month of May has been accidentally dropped from a table of
month names referenced by date(1)'s "-v" option.

>How-To-Repeat:

Reported by <keith@mail.telestream.com>:

% date -v May +%m

>Fix:

--- /usr/src/bin/date/vary.c	Sat Aug 28 01:13:59 1999
+++ vary.c	Sat Feb 19 00:52:15 2000
@@ -41,6 +41,7 @@
 
 static struct trans trans_mon[] = {
   { 1, "january" }, { 2, "february" }, { 3, "march" }, { 4, "april" },
+  { 5, "may" },
   { 6, "june" }, { 7, "july" }, { 8, "august" }, { 9, "september" },
   { 10, "october" }, { 11, "november" }, { 12, "december" },
   { -1, NULL }

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200002182358.AAA80549>