diff options
author | yar <yar@FreeBSD.org> | 2004-06-07 12:42:38 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2004-06-07 12:42:38 +0000 |
commit | 9f07c02ef330cae0a50b6fb134a88788c9f5213b (patch) | |
tree | 08e1694ca0b1fe58ebcb3cd8be18cace785b679a /bin/test | |
parent | c39a9d561b883c5d71eefe01f79221d80a175fe0 (diff) | |
download | FreeBSD-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/test')
-rw-r--r-- | bin/test/test.1 | 14 |
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 |