[Fedora-packaging] Find with -exec?

Dave Johansen davejohansen at gmail.com
Sat May 16 19:02:09 UTC 2015


On Sat, May 16, 2015 at 11:17 AM, Dave Johansen <davejohansen at gmail.com>
wrote:

> How can I use a find with -exec in a .spec file? It appears that the {} is
> being put in quotes and not doing what I'd expect. Is there a way for me to
> prevent the quoting and make this work?
> Thanks,
> Dave
>

Nevermiind. This was a stupid mistake on my part. I had a logical error. I
was doing "find -name "a*" -or -name "b*" -exec cmd {} \; and forgot that
the I needed to enclose the -or in \( \) so that the -exec would happen on
all conditions.
Sorry for the noise,
Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/packaging/attachments/20150516/ad38a452/attachment.html>


More information about the packaging mailing list