2019-12-05 19:13:03 -0000, Sam Kendall:
> -nt and -ot are Korn extensions, so there's no POSIX standard behavior
> to conform to.

It's widely supported though and may be added to the next
version of the POSIX standard. See
http://austingroupbugs.net/view.php?id=375

There's hardly any shell/test implementation left that don't
support it these days, though as you found out not all of them
have been updated to support file systems with subsecond
precision timestamps.

In any case, I agree it's a bug on systems that support
subsecond precision timestamps.

find -newer is POSIX, but you'll find some implementations that
don't support subsecond timestamps either.

$ touch a; touch b
$ find b -newer a # GNU's
b
$ sfind b -newer a # from schily-tools
b
$ busybox find b -newer a
$

-- 
Stephane

Reply via email to