1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-26 11:47:31 +00:00

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
This commit is contained in:
Jilles Tjoelker 2010-05-01 22:10:45 +00:00
parent 04001891bb
commit 8f3bd46654
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=207485

View File

@ -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 ,