Date: Sat, 1 May 2010 22:10:45 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r207485 - head/usr.bin/pathchk Message-ID: <201005012210.o41MAj59061936@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jilles Date: Sat May 1 22:10:45 2010 New Revision: 207485 URL: http://svn.freebsd.org/changeset/base/207485 Log: 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 Modified: head/usr.bin/pathchk/pathchk.1 Modified: head/usr.bin/pathchk/pathchk.1 ============================================================================== --- head/usr.bin/pathchk/pathchk.1 Sat May 1 22:04:58 2010 (r207484) +++ head/usr.bin/pathchk/pathchk.1 Sat May 1 22:10:45 2010 (r207485) @@ -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 ,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005012210.o41MAj59061936>