From owner-freebsd-bugs Wed Dec 10 14:30:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA25678 for bugs-outgoing; Wed, 10 Dec 1997 14:30:04 -0800 (PST) (envelope-from owner-freebsd-bugs) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA25672; Wed, 10 Dec 1997 14:30:01 -0800 (PST) (envelope-from gnats) Resent-Date: Wed, 10 Dec 1997 14:30:01 -0800 (PST) Resent-Message-Id: <199712102230.OAA25672@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, are@communique.no Received: from david.communique.no (ppp11.larris.ifi.uio.no [129.240.68.111]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id OAA25126 for ; Wed, 10 Dec 1997 14:24:33 -0800 (PST) (envelope-from are@communique.no) Received: (qmail 4120 invoked by uid 1001); 9 Dec 1997 21:01:22 -0000 Message-Id: <19971209210122.4119.qmail@david.communique.no> Date: 9 Dec 1997 21:01:22 -0000 From: are@communique.no Reply-To: are@communique.no To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/5269: Wrong parsing of /bin/date (1) parameters Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >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 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: