Public bug reported:
Example on Linux (RHEL 8):
$ touch a; sleep 0.1; touch b
$ ls --full-time a b
-rw-r--r-- 1 kendall staff 0 2019-12-05 13:41:43.483652556 -0500 a
-rw-r--r-- 1 kendall staff 0 2019-12-05 13:41:43.585652744 -0500 b
$ if [ a -ot b ]; then print older; fi
$ if [[ a -ot b ]]; then
-nt and -ot are Korn extensions, so there's no POSIX standard behavior
to conform to.
On RHEL 7 and 8, ksh93 and bash do *not* have the bug. On my old-ish
version of Cygwin, bash *does* have the bug.
--
You received this bug notification because you are a member of mksh
Mailing List, which is