From aa0bfdabb9642760e64bd5eb27aeea8436ec5eab Mon Sep 17 00:00:00 2001 From: jilles Date: Sun, 9 May 2010 19:32:37 +0000 Subject: [PATCH] MFC r207485: pathchk(1): Fix the example so it allows arbitrary pathnames. Spaces and various other characters in pathnames are not passed through literally by xargs in its default mode. Instead, use find . -exec ... {} + Although the -- argument is not strictly required here, add it anyway to avoid surprises when modifying the code to find -f -somedir ... git-svn-id: svn://svn.freebsd.org/base/stable/8@207827 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- usr.bin/pathchk/pathchk.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/pathchk/pathchk.1 b/usr.bin/pathchk/pathchk.1 index fb50e84c4..931f82f47 100644 --- a/usr.bin/pathchk/pathchk.1 +++ b/usr.bin/pathchk/pathchk.1 @@ -114,7 +114,7 @@ other .Tn POSIX systems: .Pp -.Dl "find . -print | xargs pathchk -p" +.Dl "find . -exec pathchk -p -- {} +" .Sh SEE ALSO .Xr getconf 1 , .Xr pathconf 2 , -- 2.45.0