summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2004-06-07 12:42:38 +0000
committeryar <yar@FreeBSD.org>2004-06-07 12:42:38 +0000
commit9f07c02ef330cae0a50b6fb134a88788c9f5213b (patch)
tree08e1694ca0b1fe58ebcb3cd8be18cace785b679a /bin
parentc39a9d561b883c5d71eefe01f79221d80a175fe0 (diff)
downloadFreeBSD-src-9f07c02ef330cae0a50b6fb134a88788c9f5213b.zip
FreeBSD-src-9f07c02ef330cae0a50b6fb134a88788c9f5213b.tar.gz
Describe how test(1) will evaluate its expressions for a symlink.
Inspired by: SUSv3 MFC after: 1 week
Diffstat (limited to 'bin')
-rw-r--r--bin/test/test.114
1 files changed, 13 insertions, 1 deletions
diff --git a/bin/test/test.1 b/bin/test/test.1
index 81f69d0..e795002 100644
--- a/bin/test/test.1
+++ b/bin/test/test.1
@@ -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
OpenPOWER on IntegriCloud