On 09/10/2012 06:05 AM, Stefano Lattarini wrote: >> but it relies on test's -nt operator. With a shell lacking >> that feature, >> > Just out of curiosity: is that feature in POSIX?
Not POSIX 2008, but it is on the floor as a proposal for adding to the next version of POSIX (along with 'test a == a', among others). > > Anyway, maybe it could be emulated with "find -newer" or something > similar... Yep, 'find $dir -newer ...' is the only POSIX way to compare timestamps, for now. -- Eric Blake ebl...@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature