summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2010-05-09 19:32:37 +0000
committerjilles <jilles@FreeBSD.org>2010-05-09 19:32:37 +0000
commit3d546666484d62196c76502a16c09ef09f5cbe52 (patch)
tree2b2c51ac565c158ad508f2de144cbe5aecc03e12 /usr.bin
parent84dd6e2dc31dcc4bb1c1300634e0f73823cf925a (diff)
downloadFreeBSD-src-3d546666484d62196c76502a16c09ef09f5cbe52.zip
FreeBSD-src-3d546666484d62196c76502a16c09ef09f5cbe52.tar.gz
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 ...
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/pathchk/pathchk.12
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/pathchk/pathchk.1 b/usr.bin/pathchk/pathchk.1
index fb50e84..931f82f 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 ,
OpenPOWER on IntegriCloud