test(1) unexpected result (to me)

From: Julian Elischer <julian_at_elischer.org>
Date: Tue, 11 Jan 2005 16:41:10 -0800
# ls -l /sys
lrwxrwxrwx  1 root  wheel  11 Sep  4 22:03 /sys -> usr/src/sys
# if [ /sys -ef /usr/src/sys ]
 > then
 > echo same
 > else
 > echo no
 > fi
no


I would have expected the result "same"

comments?
Received on Tue Jan 11 2005 - 23:41:12 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:26 UTC