Are you sure "file" is a link to an actual file, not, say, a directory?
$ rpm -q bash; echo $BASH_VERSION; cat /etc/redhat-release bash-4.3.42-3.fc23.x86_64 4.3.42(1)-release Fedora release 23 (Twenty Three) $ touch file; ln -s file link; [[ -f link ]]; echo $? 0 On Tue, Jul 26, 2016 at 12:58 PM, László Házy <haz...@yahoo.com> wrote: > I am running bash 4.3.42-3 on Fedore Core 23. > > I noticed that the [ -f file ] test returns false if "file" is a symlink. > Given the intended behavior (from a long time ago), this is wrong as the > symlinks are supposed to be followed. It certainly brakes functionality in > certain existing software. > > Has the default behavior been changed somewhere along the time line and I > am not aware of it? > >