Re: [PATCH] Use find instead of perl in t5000 to get file modification time
- From
Jeff King <peff@peff.net>
- Date
- Oct 29, 2008, 21:54 UTC
- Message-ID
- <20081029215444.GA19874@sigill.intra.peff.net>
- In-Reply-To
- <81b0412b0810290338j1beaa25bx9fb373a69f5dfe7@mail.gmail.com>
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.
-Peff