test(1) unexpected result (to me)

Sam Lawrance boris at brooknet.com.au
Tue Jan 11 17:05:34 PST 2005


Julian Elischer wrote:

> # 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?


I see the opposite of this. Just to make sure... does your /usr/src/sys 
actually exist?

-- 
Sam Lawrance    ph +61 0425 228 579    freenode: deft



More information about the freebsd-current mailing list