Bug 205794 - find: missing argument to `-exec'
find: missing argument to `-exec'
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: findutils (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Miloslav Trmač
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2006-09-08 11:48 EDT by Daniel Lipsitt
Modified: 2015-03-25 11:59 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-09-08 18:50:19 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Daniel Lipsitt 2006-09-08 11:48:25 EDT
Description of problem:
The find command's POSIX "internal xargs" exec feature is broken in
findutils-4.1.20-7.el4.1. It works in findutils-4.2.20-1 under FC 4.

Version-Release number of selected component (if applicable):

How reproducible:

4.2.20 exhibits correct behavior:

$ touch foo
$ find . -name foo -exec ls {} +

4.1.20 is buggy:

$ find . -name foo -exec ls {} +
find: missing argument to `-exec'
Comment 1 Daniel Lipsitt 2006-09-08 11:51:52 EDT
I searched http://lists.gnu.org/archive/html/bug-findutils but couldn't find a
record of this bug.
Comment 2 Miloslav Trmač 2006-09-08 18:50:19 EDT
Thanks for your report.

The "-exec ... {} +" action was first implemented in findutils-4.2.12,
therefore it is not available in RHEL 4.  You can use
    (find . -name foo -print0 | xargs -0 ls)
as a workaround.

This problem is scheduled to be resolved in the next release of Red Hat
Enterprise Linux. Red Hat does not currently plan to provide a resolution for
this in a Red Hat Enterprise Linux update for currently deployed systems.

With the goal of minimizing risk of change for deployed systems, and in response
to customer and partner requirements, Red Hat takes a conservative approach when
evaluating changes for inclusion in maintenance updates for currently deployed
products. The primary objectives of update releases are to enable new hardware
platform support and to resolve critical defects.

Note You need to log in before you can comment on or make changes to this bug.