[Top][All Lists]

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

Re: bash conditional expressions

From: Oğuz
Subject: Re: bash conditional expressions
Date: Fri, 12 Nov 2021 13:51:10 +0300

On Fri, Nov 12, 2021 at 12:44 PM Mischa Baars
<mjbaars1977.backup@gmail.com> wrote:
> Using Fedora 32 (bash 5.0.17) this returns a true, while on Fedora 35 (bash
> 5.1.8) this returns a false:
> touch test; if [[ -N test ]]; then echo true; else echo false; fi;

This seems to have changed as a result of this bug report:

> This means that newly created object files are no longer recognized by the
> compile scripts as new object files and executables are no longer linked
> against these new object files.
> Could you please restore the Fedora 32 behaviour? Someone must have read
> the bash manual a little too precise, because now the statement only
> returns true when a 'touch -a test' is given and not when a 'touch -am
> test' is given.

I agree that the `mtime >= atime' behavior should be restored; ``file
is newly created or was accessed since last modified'' is not a useful
information, nor is the opposite.

reply via email to

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