help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] How to understand non existent file is considered as the


From: Chet Ramey
Subject: Re: [Help-bash] How to understand non existent file is considered as the oldest?
Date: Thu, 09 Apr 2015 22:39:14 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

On 4/9/15 6:25 PM, Peng Yu wrote:

> But the decision of non existent file as the oldest must have some
> rationale behind it. Could anybody let me know? (This might also help
> me memorize this rule better.)

You have to pick one or the other.  Making non-existent files newer than
existing files is nonsensical, and considering them older is compatible
with the ksh implementation of -nt/-ot/-ef and consistent with how other
utilities, like `make', work.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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