From c25bdaf47df3c910b4b3511585bdd5e99d004fe9 Mon Sep 17 00:00:00 2001 From: jilles Date: Sat, 1 May 2010 22:10:45 +0000 Subject: 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 --- usr.bin/pathchk/pathchk.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/pathchk/pathchk.1') 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 , -- cgit v1.1