Hi!

----

I found another issue in the Solaris bug database which may (or may not)
affect ksh93.
Sun-Bug #6417347
(http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6417347)
describes a problem with the "test" builtin in various shells (including
Solaris ksh) which causes problems with the -nt/-ot operators vs. inode
timestame accuracy.
>From the bug's description:
-- snip --
solaris file timestamps are of better-than sub-second resolution; these
higher-resolution timestamps can be displayed with ls -E, but they are
not included in the comparisons done by test's -nt and -ot operators.

Filing as defect rather than RFE because the documentation for "test"
makes no reference to any limited resolution of the timestamp but merely
refers to whether the file is older or newer.

this appears to be common across multiple shells (ksh, zsh, bash,
/bin/test); I'm filing against ksh first to raise awareness of this.

as systems speed up, the chance that scripts using -nt and -ot  will
break due to same-second timestamps increases.
-- snip --

The question is: What is the correct behaviour in this case ? And how
does ksh93r+ currently behave ?

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)

Reply via email to