From: Alex Riesen Date: Thu, 30 Oct 2008 07:26:10 GMT Subject: Re: [PATCH] Use find instead of perl in t5000 to get file modification time Message-ID: <20081030072610.GA1052@steel.home> In-Reply-To: <20081029215444.GA19874@sigill.intra.peff.net> Jeff King, Wed, Oct 29, 2008 22:54:45 +0100: > On Wed, Oct 29, 2008 at 11:38:32AM +0100, Alex Riesen wrote: > > > There can be a problem with "-printf": Open Group SUS does not specify > > -printf for find(1), so it is probably a problem somewhere. I just don't know. > > [...] > > + find extract/a/a -printf "%T@\\n" >b.mtime && > > $ uname -sr > FreeBSD 6.1-RELEASE-p17-jc1 > $ find . -printf "%T@\\n" > find: -printf: unknown option > > > There is always a fallback, which is to write a small program which calls > > native stat(2). Or modify test-chmtime to just print mtime when asked. > > I think that makes the most sense. > Ok, will do.