From owner-cvs-all Fri Sep 14 7:39:39 2001 Delivered-To: cvs-all@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 3CFDB37B40D; Fri, 14 Sep 2001 07:39:21 -0700 (PDT) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f8EEd8x44753; Fri, 14 Sep 2001 17:39:08 +0300 (EEST) (envelope-from ru) Date: Fri, 14 Sep 2001 17:39:08 +0300 From: Ruslan Ermilov To: Bruce Evans Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/find find.1 find.h function.c Message-ID: <20010914173908.B42991@sunbay.com> References: <20010914155552.A27691@sunbay.com> <20010914232817.C19138-100000@delplex.bde.org> <20010914171856.A39969@sunbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010914171856.A39969@sunbay.com>; from ru@FreeBSD.org on Fri, Sep 14, 2001 at 05:18:56PM +0300 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Sep 14, 2001 at 05:18:56PM +0300, Ruslan Ermilov wrote: > On Fri, Sep 14, 2001 at 11:33:18PM +1000, Bruce Evans wrote: > > On Fri, 14 Sep 2001, Ruslan Ermilov wrote: > > > > > On Fri, Sep 14, 2001 at 05:47:13AM -0700, Ruslan Ermilov wrote: > > > > Bloat find(1) even more, and introduce the concept > > > > of time units to be used with -[acm]time primaries. > > > > > > > > Based on patch from Nils M Holm . > > > > > > > > PR: bin/29165, bin/30309 > > > > > > > I called this bloat, because a similar feature was already > > > available with ``-newerXt time''. I wonder, shouldn't we > > > remove this piece of GNU code now? > > > > What is better about the new way? Better units? -newerXY is more > > general. > > > Not quite, and I was confused here. > > ``-newer Xt time'' compares the file's X time against the point > in time specified as an argument. The new syntax of -[acm]time > allows to match the files that are _older_ or _newer_ than the > specified amount of time units since the find(1) was run. > For example, ``find / -mtime -1h30m'' will match files that were > modified during the last hour and a half. And of course this > does not replace the functionality of ``-newerX[acm] file''. > > To summarize: > > -newerX[acm] file compares against > -newerXt time compares against