-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to [EMAIL PROTECTED] on 7/8/2007 6:00 AM:
> I wonder why the following expression:
> 
>   find /home/sky/projects/findutils/sp \
>     '( -fstype ext3 -o  -type d -wholename prune1 \
>         -o  -type d -wholename prune2 -o  -type d -wholename prune3)' \
>     -prune -o -print0
> 
> fails with
> 
>   invalid predicate `( -fstype ext3 -o  -type d -wholename prune1 -o
>     -type d -wholename prune2 -o  -type d -wholename prune3)'
> 
> What's wrong with it?

It's quoted wrong.  Each predicate must be a separate argument, not one
run-on argument.  You probably meant:

  find /home/sky/projects/findutils/sp \
    '(' -fstype ext3 -o  -type d -wholename prune1 \
        -o  -type d -wholename prune2 -o  -type d -wholename prune3 ')' \
    -prune -o -print0

- --
Don't work too hard, make some time for fun as well!

Eric Blake             [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD4DBQFGkOIP84KuGfSFAYARAiQzAJ45jigxYgJxXk22zxH8zQjBSSdq8wCYpZrN
1omNo1QoJHmJGBC/tlzfcg==
=djjO
-----END PGP SIGNATURE-----


_______________________________________________
Bug-findutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-findutils

Reply via email to