mkdir directory ln -s noexist symlink touch -hr directory symlink
test directory -nt symlink &&echo yes ||echo noThey have identical mtimes (as set by touch)--i.e. the directory is *not* newer than the symlink--but it still outputs "yes". Why?
../C
mkdir directory ln -s noexist symlink touch -hr directory symlink
test directory -nt symlink &&echo yes ||echo noThey have identical mtimes (as set by touch)--i.e. the directory is *not* newer than the symlink--but it still outputs "yes". Why?
../C