Another quickie. When a predicate is not syntactically correct, the find parser will currently say:
"invalid predicate `%s'" which IMO obscures the fact that the predicate NAME may be alright, but the number or format of parameters didn't match. Therefore: "invalid or malformed predicate `%s'" Patch is attached. -- NEW homepage: https://viridian.dnsalias.net/~sky/homepage/ gpg --keyserver pgp.mit.edu --recv-keys DD4EBF83
Index: find/tree.c
===================================================================
RCS file: /sources/findutils/findutils/find/tree.c,v
retrieving revision 1.29
diff -u -r1.29 tree.c
--- find/tree.c 7 Mar 2007 23:18:38 -0000 1.29
+++ find/tree.c 31 Mar 2007 12:21:09 -0000
@@ -1339,7 +1340,7 @@
{
if (oldi == i)
{
- error (1, 0, _("invalid predicate `%s'"),
+ error (1, 0, _("invalid or malformed predicate `%s'"),
predicate_name);
}
else
pgpuQnpFMpwIj.pgp
Description: PGP signature
_______________________________________________ Bug-findutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-findutils
