On Fri, Nov 12, 2021 at 12:44 PM Mischa Baars <mjbaars1977.bac...@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: https://lists.gnu.org/archive/html/bug-bash/2019-07/msg00022.html > > 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.