[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash conditional expressions
From: |
Ilkka Virta |
Subject: |
Re: bash conditional expressions |
Date: |
Mon, 15 Nov 2021 13:16:10 +0200 |
On Mon, Nov 15, 2021 at 5:21 AM Greg Wooledge <greg@wooledge.org> wrote:
> relatime
> Update inode access times relative to modify or change
> time.
> Access time is only updated if the previous access time was
> ear‐
> lier than the current modify or change time.
>
I guess that's the important part anyway. But it doesn't look exactly
right: at least on my
system it updates atime also if atime == mtime. So you always get to see if
the file was
read after the last time it was written to.
A newly-created file would have mtime == atime, and if test -N requires
mtime > atime,
it won't find those. Not sure if it should.
Re: bash conditional expressions, Dale R. Worley, 2021/11/14
Re: bash conditional expressions, Chet Ramey, 2021/11/15
Re: bash conditional expressions, Chet Ramey, 2021/11/17