Author: jilles
Date: Sun May  9 19:32:37 2010
New Revision: 207827
URL: http://svn.freebsd.org/changeset/base/207827

Log:
  MFC r207485: 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 ...

Modified:
  stable/8/usr.bin/pathchk/pathchk.1
Directory Properties:
  stable/8/usr.bin/pathchk/   (props changed)

Modified: stable/8/usr.bin/pathchk/pathchk.1
==============================================================================
--- stable/8/usr.bin/pathchk/pathchk.1  Sun May  9 19:30:52 2010        
(r207826)
+++ stable/8/usr.bin/pathchk/pathchk.1  Sun May  9 19:32:37 2010        
(r207827)
@@ -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 ,
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to