Date: 9 Dec 1997 21:01:22 -0000 From: are@communique.no To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/5269: Wrong parsing of /bin/date (1) parameters Message-ID: <19971209210122.4119.qmail@david.communique.no> Resent-Message-ID: <199712102230.OAA25672@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 5269 >Category: bin >Synopsis: Wrong parsing of /bin/date (1) parameters >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Dec 10 14:30:01 PST 1997 >Last-Modified: >Originator: Are Bryne >Organization: Communique DA >Release: FreeBSD 2.2.5-STABLE i386 >Environment: Last cvsup'ed all sources at Dec 3 23:24 CET, and did a make world afterwards. >Description: date(1) says it takes the following command line arguments: usage: date [-nu] [-d dst] [-r seconds] [-t west] [+format] [-v [+|-]val[ymwdHM]] ... [-f fmt date | [[[[yy]mm]dd]HH]MM[.ss]] When supplying both a <format> and the -v option, I am required to swap the placement to the opposite of what I'm told to do. >How-To-Repeat: % date +%y -v-1y date: illegal time format % date -v-1y +%y 96 >Fix: Change the documentation, or parse the command line differently. If any change is made to the parsing, it should perhaps accept both variants. >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971209210122.4119.qmail>