Date: Mon, 6 Oct 1997 06:02:56 +0200 (CEST) From: Martin Kammerhofer <dada@sbox.tu-graz.ac.at> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: docs/4704: wrong synopsis in date(1) manpage and usage() routine Message-ID: <199710060402.GAA23650@lend.tu-graz.ac.at> Resent-Message-ID: <199710060620.XAA07252@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 4704
>Category: docs
>Synopsis: wrong synopsis in date(1) manpage and usage() routine
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Class: doc-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Oct 5 23:20:01 PDT 1997
>Last-Modified:
>Originator: Martin Kammerhofer
>Organization:
Graz University of Technology
>Release: FreeBSD 2.2.2-RELEASE i386
>Environment:
>Description:
'man 1 date' specifies synopsis as:
date [-d dst] [-r seconds] [-t minutes_west] [-nu] [+format]
[[yy[mm[dd[hh]]]]mm[.ss]]
This is nonsense. Correct is:
date [-d dst] [-r seconds] [-t minutes_west] [-nu] [+format]
[[[[[yy]mm]dd]hh]mm[.ss]]
In other words: If you give a date-spec. with exactly 4 digits it is
interpreted as hhmm and not as yymm!
The program parses correct, the manpage and usage string (at end of date.c)
are wrong.
>How-To-Repeat:
man date | head
date 123
>Fix:
Get the brackets right!
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710060402.GAA23650>
