Thanks for the documentation-improvement suggestion. I installed the
following (terser) patch.
Index: doc/coreutils.texi
===================================================================
RCS file: /home/eggert/coreutils/cu/doc/coreutils.texi,v
retrieving revision 1.208
diff -p -u -r1.208 coreutils.texi
--- doc/coreutils.texi 9 Sep 2004 03:54:13 -0000 1.208
+++ doc/coreutils.texi 9 Sep 2004 04:09:10 -0000
@@ -9478,6 +9478,8 @@ True if @var{file} exists and is a regul
@opindex -h
@cindex symbolic link check
True if @var{file} exists and is a symbolic link.
+Unlike all other file-related tests, this test does not dereference
[EMAIL PROTECTED] if it is a symbolic link.
@item -p @var{file}
@opindex -p
Index: src/test.c
===================================================================
RCS file: /home/eggert/coreutils/cu/src/test.c,v
retrieving revision 1.106
diff -p -u -r1.106 test.c
--- src/test.c 9 Sep 2004 03:53:54 -0000 1.106
+++ src/test.c 9 Sep 2004 04:12:16 -0000
@@ -907,6 +907,7 @@ EXPRESSION is true or false and sets exi
"), stdout);
fputs (_("\
\n\
+Except for -h and -L, all FILE-related tests dereference symbolic links.\n\
Beware that parentheses need to be escaped (e.g., by backslashes) for shells.\n\
INTEGER may also be -l STRING, which evaluates to the length of STRING.\n\
"), stdout);
_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-coreutils