bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Invalid predicate problem


From: Eric Blake
Subject: Re: Invalid predicate problem
Date: Sun, 08 Jul 2007 07:09:36 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070604 Thunderbird/2.0.0.4 Mnenhy/0.7.5.666

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

According to address@hidden 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             address@hidden
-----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-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]