Describe how test(1) will evaluate its expressions for a symlink.

Inspired by:	SUSv3
MFC after:	1 week
This commit is contained in:
Yaroslav Tykhiy 2004-06-07 12:42:38 +00:00
parent 144a53875b
commit 593cc6f338
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130189

View File

@ -255,6 +255,17 @@ than or equal to the integer
.Ar \&n\&2 .
.El
.Pp
If
.Ar file
is a symbolic link,
.Nm
will fully dereference it and then evaluate the expression
against the file referenced, except for the
.Fl h
and
.Fl L
primaries.
.Pp
These primaries can be combined with the following operators:
.Bl -tag -width Ar
.It Cm \&! Ar expression
@ -315,7 +326,8 @@ An error occurred.
.Sh SEE ALSO
.Xr builtin 1 ,
.Xr expr 1 ,
.Xr sh 1
.Xr sh 1 ,
.Xr symlink 7
.Sh STANDARDS
The
.Nm