http://qs321.pair.com?node_id=1059314


in reply to Should -f test return true for symlinks ? [RESOLVED]

The documentation is clear, if you don't just skim parts of it. "-f $path" calls stat(). "-l $path" calls lstat(). So, "-f $path" will be true for a link to a file.

If you want -f to be false for a symlink, then you do "-f _" preceded by something that calls lstat(); that is, either "-l $path" or "lstat $path".

- tye