From owner-freebsd-hackers Thu Jul 31 20:00:41 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id UAA20447 for hackers-outgoing; Thu, 31 Jul 1997 20:00:41 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA20438 for ; Thu, 31 Jul 1997 20:00:35 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by genesis.atrad.adelaide.edu.au (8.8.5/8.7.3) with ESMTP id MAA02167; Fri, 1 Aug 1997 12:30:31 +0930 (CST) From: Greg Lehey Received: (grog@localhost) by freebie.lemis.com (8.8.6/8.6.12) id MAA08376; Fri, 1 Aug 1997 12:30:30 +0930 (CST) Message-Id: <199708010300.MAA08376@freebie.lemis.com> Subject: Re: date(1) In-Reply-To: <199708010240.DAA03883@awfulhak.org> from Brian Somers at "Aug 1, 97 03:40:05 am" To: brian@awfulhak.org (Brian Somers) Date: Fri, 1 Aug 1997 12:30:29 +0930 (CST) Cc: grog@lemis.com, brian@awfulhak.org, hackers@freebsd.org Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Brian Somers writes: >> .....] >> > The first is just wrong, and the second is a mis-quote. I originally >> > said: >> > >> >> More like: >> >> >> >>>> cc[yy[mm[dd[hh]]]]]mm[.ss]] > > Arrrghhhhhh ! Your mailer is gobbling the "open square brace" > characters ! That is *NOT* what I posted. There are two opening > brackets prior to the ``cc'' that something's eating. Mea culpa. OK, that changes things: + [[cc[yy[mm[dd[hh]]]]]mm[.ss]] + + this syntax can be expanded to: + + [[cc[yy[mm[dd]]]]mm[.ss]] + [[cc[yy[mm]]]mm[.ss]] + [[cc[yy]]mm[.ss]] + [[cc]mm[.ss]] + [mm[.ss]] + [[cc[yy[mm[dd]]]]mm] + [[cc[yy[mm]]]mm] + [[cc[yy]]mm] + [[cc]mm] + + So 'date 2001' must mean "set the date to century 20, year undefined, + month, day, and hour undefined, minute 1. + + Most newcomers to UNIX hate date(1) because the date entry format is + already too cryptic. This would just make it worse. There are some + other alternatives for date entry--tar uses one, for example, though + it may be GNU code. Why not base an implementation on one of those? In other words, yes, my mail macros screwed up the syntax, but they didn't change much. > I'm sure we can all agree that this means the above usage (with the > two wandering brackets included) is correct ? No, it's still wrong. Greg