From 593cc6f33838f6c3ab4dc12c8f668dd6fce319e6 Mon Sep 17 00:00:00 2001 From: Yaroslav Tykhiy Date: Mon, 7 Jun 2004 12:42:38 +0000 Subject: [PATCH] Describe how test(1) will evaluate its expressions for a symlink. Inspired by: SUSv3 MFC after: 1 week --- bin/test/test.1 | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/bin/test/test.1 b/bin/test/test.1 index 81f69d0f12d..e79500252d7 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