posix me harder

Martin Pool mbp at samba.org
Fri Mar 15 08:58:46 EST 2002

> This does not demonstrate that test(1) is broken.

I should have left off the '(1)'.

Apparently different systems support different options.  I suppose the
best portable test for symlinks will be

if test -L "$f" || test -h "$f" || /bin/test -L "$f" || /bin/test -h "$f" 
	echo is a link


More information about the rsync mailing list