On 10/26/2016 06:35 AM, isabella parakiss wrote:
> from find/find.1
> 
>> The predicate
>> .B \-path
>> is also supported by HP-UX
>> .B find
>> and will be in a forthcoming version of the POSIX standard.
> 
> 
> find -path has been in posix for 8 years

Thanks for the report.
The attached fixes it - along with a similar case in a comment.
Pushing soon.

Have a nice day,
Berny
>From a20537fc1c129bf51717cefcc3cf6e65f53560f4 Mon Sep 17 00:00:00 2001
From: Bernhard Voelker <m...@bernhard-voelker.de>
Date: Tue, 1 Nov 2016 15:41:46 +0100
Subject: [PATCH] doc: clarify that -path is part of POSIX in find.1

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/find.html

* find/find.1: Change the description of the -path option mentioning
that it is now part of POSIX 2008.
* find/parser.c (parse_table): Change comment: -path is POSIX.
(insert_path_check): Likewise.

Reported by Isabella Parakiss in
http://lists.gnu.org/archive/html/bug-findutils/2016-10/msg00001.html
---
 find/find.1   | 2 +-
 find/parser.c | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/find/find.1 b/find/find.1
index 7b450d8..602a414 100644
--- a/find/find.1
+++ b/find/find.1
@@ -822,7 +822,7 @@ The predicate
 .B \-path
 is also supported by HP-UX
 .B find
-and will be in a forthcoming version of the POSIX standard.
+and is part of the POSIX 2008 standard.
 
 .IP "\-perm \fImode\fR"
 File's permission bits are exactly \fImode\fR (octal or symbolic).
diff --git a/find/parser.c b/find/parser.c
index 3ed5c31..3df729a 100644
--- a/find/parser.c
+++ b/find/parser.c
@@ -288,7 +288,7 @@ static struct parser_table const parse_table[] =
   PARSE_PUNCTUATION("or",                    or),	     /* GNU */
   PARSE_ACTION     ("ok",                    ok), /* POSIX */
   PARSE_ACTION     ("okdir",                 okdir), /* GNU (-execdir is BSD) */
-  PARSE_TEST       ("path",                  path), /* GNU, HP-UX, RMS prefers wholename, but anyway soon POSIX */
+  PARSE_TEST       ("path",                  path), /* POSIX */
   PARSE_TEST       ("perm",                  perm), /* POSIX */
   PARSE_ACTION     ("print",                 print), /* POSIX */
   PARSE_ACTION     ("print0",                print0),	     /* GNU */
@@ -307,7 +307,7 @@ static struct parser_table const parse_table[] =
   PARSE_TEST       ("uid",                   uid),	     /* GNU */
   PARSE_TEST       ("used",                  used),	     /* GNU */
   PARSE_TEST       ("user",                  user), /* POSIX */
-  PARSE_TEST_NP    ("wholename",             wholename), /* GNU, replaced -path, but anyway -path will soon be in POSIX */
+  PARSE_TEST_NP    ("wholename",             wholename), /* GNU, replaced -path, but now -path is standardized since POSIX 2008 */
   {ARG_TEST,       "writable",               parse_accesscheck, pred_writable}, /* GNU, 4.3.0+ */
   PARSE_OPTION     ("xdev",                  xdev), /* POSIX */
   PARSE_TEST       ("xtype",                 xtype),	     /* GNU */
@@ -1830,7 +1830,7 @@ insert_path_check (const struct parser_table* entry, char **argv, int *arg_ptr,
  * We do not issue a warning that this usage is deprecated
  * since
  * (a) HPUX find supports this predicate also and
- * (b) it will soon be in POSIX anyway.
+ * (b) it is standardized since POSIX 2008.
  */
 static bool
 parse_path (const struct parser_table* entry, char **argv, int *arg_ptr)
-- 
2.1.4

Reply via email to