** Changed in: mksh
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of mksh
Mailing List, which is subscribed to mksh.
Matching subscriptions: mkshlist-to-mksh-bugmail
https://bugs.launchpad.net/bugs/1855325

Title:
  test -nt and -ot ignore the subsecond part of file timestamps

Status in mksh:
  Fix Released

Bug description:
  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 print older; fi                                      
                                                                                
                                                                               
  $ 

  The last two commands should have printed "older".

  $ print $KSH_VERSION
  @(#)MIRBSD KSH R56 2018/01/14
  $ uname -sr
  Linux 4.18.0-80.el8.x86_64

  R49 on Cygwin and R46 on RHEL 7 have the same behavior.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mksh/+bug/1855325/+subscriptions

Reply via email to