Re: file access time and file modification time

2019-09-24 Thread Mischa Baars
On Tue, 2019-09-24 at 09:29 -0400, Chet Ramey wrote: > On 9/24/19 3:04 AM, Mischa Baars wrote: > > Hi Kerin, > > > > That indeed solves the problem in 'accesstime.sh', although I would > > recommend some sort of reference from the bash manpage to the mount > > manpage. > > > > Did you have a look

Re: file access time and file modification time

2019-09-24 Thread Chet Ramey
On 9/24/19 3:04 AM, Mischa Baars wrote: > Hi Kerin, > > That indeed solves the problem in 'accesstime.sh', although I would > recommend some sort of reference from the bash manpage to the mount > manpage. > > Did you have a look at the 'conditional.sh' script too? Looks like the > '-N' switch com

Re: file access time and file modification time

2019-09-24 Thread Mischa Baars
Strange, it seems the replies did come through. So have you seen them? Let's try the gnome mail client, at least I got a receipt this time. Regards, Mischa. On Tue, 2019-09-24 at 09:04 +0200, Mischa Baars wrote: > Hi Kerin, > > That indeed solves the problem in 'accesstime.sh', although I would

Re: file access time and file modification time

2019-09-24 Thread Mischa Baars
Hi Kerin, That indeed solves the problem in 'accesstime.sh', although I would recommend some sort of reference from the bash manpage to the mount manpage. Did you have a look at the 'conditional.sh' script too? Looks like the '-N' switch compares only the integer part of the timestamp seconds. R

Re: file access time and file modification time

2019-09-23 Thread Mischa Baars
Hi Kerin and Chet, Testing mailing list. My earlier replies didn't come through. Regards, Mischa. On Tue, 2019-07-09 at 11:16 +0100, k...@plushkava.net wrote: > Hi Mischa, > > On Tue, 09 Jul 2019 09:05:45 +0200 > Mischa Baars wrote: > > > Hi Kerin, > > > > That indeed solves the problem in '

Re: file access time and file modification time

2019-07-09 Thread Chet Ramey
On 7/9/19 12:12 PM, k...@plushkava.net wrote: >> The code just returns (atime <= mtime), and has since 1997. It uses the >> st_atime and st_mtime fields. I should update it to use timespecs if >> they're available, and (mtime > atime) might work closer to your >> expectations. >> >> After the call

Re: file access time and file modification time

2019-07-09 Thread
On Tue, 9 Jul 2019 10:48:32 -0400 Chet Ramey wrote: > On 7/9/19 6:16 AM, k...@plushkava.net wrote: > > >> Did you have a look at the 'conditional.sh' script too? Looks like the > >> '-N' switch compares only the integer part of the timestamp seconds. > > > > The stat structure supports timesta

Re: file access time and file modification time

2019-07-09 Thread Chet Ramey
On 7/9/19 6:16 AM, k...@plushkava.net wrote: >> Did you have a look at the 'conditional.sh' script too? Looks like the '-N' >> switch compares only the integer part of the timestamp seconds. > > The stat structure supports timestamp fields of nanosecond granularity since > POSIX.1-2008, so it s

Re: file access time and file modification time

2019-07-09 Thread
Hi Mischa, On Tue, 09 Jul 2019 09:05:45 +0200 Mischa Baars wrote: > Hi Kerin, > > That indeed solves the problem in 'accesstime.sh', although I would recommend > some sort of reference from the bash manpage to the mount manpage. > > Did you have a look at the 'conditional.sh' script too? Look

Re: file access time and file modification time

2019-07-08 Thread
On Mon, 08 Jul 2019 09:29:19 +0200 "mjbaars1977.bug-bash" wrote: > Hi,I'm having some difficulties with the file access time and the file > modification time. Scripts are attached for your convenience.Regards,Mischa > Baars.Sent from my Samsung Galaxy smartphone. If you are using Linux, you sh

file access time and file modification time

2019-07-08 Thread mjbaars1977.bug-bash
Hi,I'm having some difficulties with the file access time and the file modification time. Scripts are attached for your convenience.Regards,Mischa Baars.Sent from my Samsung Galaxy smartphone. conditional.sh Description: application/sh accesstime.sh Description: application/sh