Re: [PATCH] Use find instead of perl in t5000 to get file modification time
Jeff King, Wed, Oct 29, 2008 22:54:45 +0100:
Show 17 quoted lines
> 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.
>