diff options
author | jilles <jilles@FreeBSD.org> | 2010-05-01 22:10:45 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2010-05-01 22:10:45 +0000 |
commit | c25bdaf47df3c910b4b3511585bdd5e99d004fe9 (patch) | |
tree | b8a9cc1aad5a15709adc15591f556b87b967aab9 /usr.bin | |
parent | 5baa2ffd766629886fc7d864f4c82fad76ab87e3 (diff) | |
download | FreeBSD-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.1 | 2 |
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 , |