bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash "test" -nt and -ot operators mishandle nonpositive timestamps


From: Brian J. Fox
Subject: Re: bash "test" -nt and -ot operators mishandle nonpositive timestamps
Date: Tue, 26 Feb 2002 16:00:07 -0800

   Date: Tue, 26 Feb 2002 15:51:50 -0800 (PST)
   From: Paul Eggert <eggert@twinsun.com>

   Description:
           The "-ot" and "-nt" operators of the "test" command mishandle
           the case where one file has a nonpositive timestamp and the
           other file does not exist.  Files that do not exist should
           always be considered to be older than files that do exist.

Why should non-existant files be older than existing files?
Why not the other way around?

(I'm not trying to be argumentative -- I actually want to know what your
reasoning is...)

Brian
-- 
== The Difference Between Cultures: ==
    Einigkeit und Recht und Freiheit
    Liberte', E'galite', Fraternite'
    Sex, drugs and rock'n'roll



reply via email to

[Prev in Thread] Current Thread [Next in Thread]