Path: csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Mischa Baars Newsgroups: gnu.bash.bug Subject: Re: file access time and file modification time Date: Tue, 24 Sep 2019 09:04:00 +0200 Lines: 30 Approved: bug-bash@gnu.org Message-ID: References: <20190708092807.02edd68a60130b89a7775425@plushkava.net> <434b64df9db77998d977c2cf25e89005962e3cdb.camel@cyberfiber.eu> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: usenet.stanford.edu 1569308722 2990 209.51.188.17 (24 Sep 2019 07:05:22 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cyberfiber.eu; s=default; h=Content-Transfer-Encoding:MIME-Version: Content-Type:References:In-Reply-To:Date:To:From:Subject:Message-ID:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=yLIesnlorugqo+XOeZRKdR71MKCx+/JR20YjpksVsdw=; b=vslBOJ4mKEt3fuozRFSfYLy2wY ETg1w5CTzlsN/ah+4wGQ4RZP2oJmDS5SzfImDGcL925B7PV06vtMdQjaPtYz/me1iuB4PUnJLpR/6 rvKqZY+7K9neP82dzx8C6pyQAMDPRPZIzoMWvL+0T7hk+LfMY4AtxDABnswXadeipBqdVYolRCZdM jBpoE+wGf0ecjO9z9mCpx7PBiUP6PLfuveSp86je+VD6ohLmc50bCpluueUwXhNFZArjhJv5v4UTo dRDngnifUmbBAxZssDOD+e/iQpMLDLDyba5yg6HiD27bWIF8y41Ky00tfhsesQYDR4a9+lF7zYego 8GYbds1Q==; In-Reply-To: <20190708092807.02edd68a60130b89a7775425@plushkava.net> User-Agent: Evolution 3.32.4 (3.32.4-1.fc30) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - www98.totaalholding.nl X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - cyberfiber.eu X-Get-Message-Sender-Via: www98.totaalholding.nl: authenticated_id: mjbaars1977.bug-bash@cyberfiber.eu X-Authenticated-Sender: www98.totaalholding.nl: mjbaars1977.bug-bash@cyberfiber.eu X-Source: X-Source-Args: X-Source-Dir: X-Originating-IP: 185.94.230.81 X-SpamExperts-Domain: out.totaalholding.nl X-SpamExperts-Username: 185.94.230.81 Authentication-Results: totaalholding.nl; auth=pass smtp.auth=185.94.230.81@out.totaalholding.nl X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.15) X-Recommended-Action: accept X-Filter-ID: Mvzo4OR0dZXEDF/gcnlw0dWQ8c9lblW44odAlK6ziUapSDasLI4SayDByyq9LIhVxp5Elys25IbQ ZbBKLltR70TNWdUk1Ol2OGx3IfrIJKywOmJyM1qr8uRnWBrbSAGDu+MuAbNHX7Qd+PEd0ms9H80D SEpCfISRYCKsig5kq2J9W5WYRDj2azWdTigP5TVmZIOQYaDXB30lsHjt7j8HkKlf0W50n6AuXIMv hlU4BzhNwITHhljpqKk+Ratvp0JPhh8OzJWiBXhoyvdBz/MpXE9H2jTXggI6z2khZfw60smPWmpe Lxu1AJ+qib20747kaNJScrTO/pZaeJIu6m+LfxVVJ2mVvokCO2vVjpfr/eX3+RWxljT0AAJgouHP rg5R6cTrAfIBtLJVe62uoyOAUop4cZXX4YNvBwClFIJz3G8Bi53Psle5cUmOuJZEMw7GmFVVgWdB XKkEH0++/JhR/Qa+FEE+TmTK/6Hl36Y/23+8Ksk+aedMfNWSnJswrtlNLvt8g5xNnRDJKGvWdqSF OI2azxuHF97acinCSKJAyH/YQ5Td2RXsWX2IABvakz06874MD/XDMPpcnv6l5Hrq7jOPc3EG53uL 3j4HL+IhMsqbPc0mYnNMTVPrDKDVIdcL6qGn1FPkbTC6xz4g99Km1K4+puQs5fUV7zVHW/qjso1u Up3ULvczjaHCHwTmtXJZHCC3chfDnjuFICWMuxLRLOynNxOG8jRaGtNDmAL29WjQ2Ccj5VcaosAj gJ95SCE4kemVPbxtQKKulOG12s00pz09xhzKDLtirq47EkWEuDsfDQ0DTqkSaQGhmj6q5MhvpUo8 74Rr+S2fVwvNTrzAmYBvlYWmexRP+DhcpWTl4XRLt1ZX2GewjlzYPf6fqxbEm1skxLR15HFVtMrx eS5NISTmCCXeDL0NDX+BHG7xztVbkvvaN2po41Rt3Q2Bg7/ssOatMBAcJ4xUpeWO/3Mmw2TN7N36 EADOPX2jJv0RwGZbBKaJo7HrAcemBJcirJ2QDi/8SrmM5lM6SsmTMSx8yyAOvpLCZllAsiGQdipP vGKr7nU8c+F30rcLhz5eFPWOMS+4ayUpOtEhdxekWDmK9g== X-Report-Abuse-To: spam@filter01.totaalholding.nl X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a02:40c0:1:2:ffff::3 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <434b64df9db77998d977c2cf25e89005962e3cdb.camel@cyberfiber.eu> X-Mailman-Original-References: <20190708092807.02edd68a60130b89a7775425@plushkava.net> Xref: csiph.com gnu.bash.bug:15424 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. Regards, Mischa. On Mon, 2019-07-08 at 09:28 +0100, kfm@plushkava.net wrote: > 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 should be aware that it defaults to using > "relatime", meaning that atimes are only updated under certain > circumstances. The correct (POSIX compliant) behaviour is achieved by > mounting the filesystem with the "strictatime" option. See > http://man7.org/linux/man-pages/man8/mount.8.html for further > information. >