From: Eric Wong Date: Sun, 31 Jul 2016 01:07:32 GMT Subject: Re: [PATCH] t7063: work around FreeBSD's lazy mtime update feature Message-ID: <20160731010732.GA31840@whir> In-Reply-To: <20160731001532.GA23146@starla> Eric Wong wrote: > Nguyễn Thái Ngọc Duy wrote: > > +test_expect_success FREEBSD 'Work around lazy mtime update' ' > > + ls -ld . >/dev/null > > +' > > stat . >/dev/null If there's some older FreeBSD w/o stat(1); "test -x ." ought to work, too, and it's faster being a shell builtin. I suspect some shell might be clever about optimizing away a more-obvious "test -d .", so I choose "test -x ." > would be more to the point of what is going on, here. But I > also wonder if untracked cache itself could/should be doing this > internally. Still wondering :> > (I'm not familiar with that code, of course) > > Thanks again for looking into this.