On Wed, Sep 15, 2010 at 01:11:55AM +0200, Ingo Schwarze wrote:
> So on the basis of Joachim's last diff, i'm trying to put everything
> together to get it off the table:
> 
>  * I do think that -or in the last example makes sense.  That example
>    is not just about precedence in general, but it also makes the point
>    that explicit final -print is different from implicit final -print:
>    the former needs explicit parentheses, which the latter doesn't.
>  * find -print is not only dangerous with rm, but with practically
>    all other programs, in particular the shell.
>    Perhaps this even shorter wording is clearer:
>      "Passing output of find to other programs requires some care."
>  * Display the example file names in CAVEATS as suggested by Jason.

This is nice, but how about changing this

> +.Pp
> +Passing output of
> +.Nm
> +to other programs requires some care:
> +.Pp
> +.Dl "$ find . -name \e*.jpg | xargs rm"
> +or
> +.Dl "$ rm `find . -name \e*.jpg`"
> +.Pp
> +would, given file names
> +.Dq important\ .jpg
> +and
> +.Dq important ,
> +remove
> +.Dq important .
> +Use the
> +.Ic -print0
> +or
> +.Ic -exec
> +primaries instead.

to read '*files* "important .jpg" and "important"'?

                Joachim

Reply via email to