From owner-freebsd-bugs Mon Sep 4 13:50: 5 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6895137B424 for ; Mon, 4 Sep 2000 13:50:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id NAA59912; Mon, 4 Sep 2000 13:50:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Mon, 4 Sep 2000 13:50:02 -0700 (PDT) Message-Id: <200009042050.NAA59912@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Paul Herman Subject: Re: bin/21039: date -v31d -v08m -v2000y Reply-To: Paul Herman Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/21039; it has been noted by GNATS. From: Paul Herman To: Dietmar Tanke Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/21039: date -v31d -v08m -v2000y Date: Mon, 4 Sep 2000 22:46:16 +0200 (CEST) On Mon, 4 Sep 2000, Dietmar Tanke wrote: > >Description: > Date adjustment using the -v option seems not work for any date with > the 31th day of a month. Two examples. First one with a good result > and the second leads to an unexpected error. Is it a bug? > > dtanke$ date -v30d -v08m -v2000y > Wed Aug 30 21:27:24 CEST 2000 The order of the "-v"s are important. bash-2.03$ date -v8m -v31d -v2000y Thu Aug 31 22:45:03 CEST 2000 Try it next month and it'll work no matter what the order. :-) -Paul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message