summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2010-05-01 22:10:45 +0000
committerjilles <jilles@FreeBSD.org>2010-05-01 22:10:45 +0000
commitc25bdaf47df3c910b4b3511585bdd5e99d004fe9 (patch)
treeb8a9cc1aad5a15709adc15591f556b87b967aab9 /usr.bin
parent5baa2ffd766629886fc7d864f4c82fad76ab87e3 (diff)
downloadFreeBSD-src-c25bdaf47df3c910b4b3511585bdd5e99d004fe9.zip
FreeBSD-src-c25bdaf47df3c910b4b3511585bdd5e99d004fe9.tar.gz
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 ... MFC after: 1 week
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