Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Oct 1998 16:05:59 -0700 (PDT)
From:      Castor Fu <castor@geocast.net>
To:        freebsd-questions@FreeBSD.ORG
Subject:   test(1), symlinks, -h, and -L
Message-ID:  <Pine.GSO.4.03.9810141552590.5760-100000@geo.geocast.net>

next in thread | raw e-mail | index | archive | help
Does FreeBSD's test(1) accept only the '-h' flag when testing for a
 symbolic link in compliance with some proposed standard?  If so, what
standard?

It seems there is a fair amount of disagreement on the 'right' thing:

		-h	-L	preference?

Solaris 2.x	yes	yes	-h -- -L is deprecated
FreeBSD		yes	no	-h -- -L doesn't work at all
NetBSD		yes	yes	-L -- -h is deprecated
Linux		yes	yes	-L -- -h is undocumented

The lack of support for '-L'  in FreeBSD's test annoyingly breaks compatibility
between FreeBSD & NetBSD.  This would be less annoying if people agreed
on which use was deprecated.  Would people object strongly to supporting
both and choosing a side?

	-castor


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.03.9810141552590.5760-100000>