[Top][All Lists]

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

[bug #23439] "find dir -sometests -exec cp '{}' destination/ +" FAILS, p

From: Roland Eggner
Subject: [bug #23439] "find dir -sometests -exec cp '{}' destination/ +" FAILS, placeholder must TERMINATE command
Date: Fri, 30 May 2008 14:18:11 +0000
User-agent: Opera/9.50 (X11; Linux i686; U; de)


                 Summary: "find dir -sometests -exec cp '{}' destination/ +"
FAILS, placeholder must TERMINATE command
                 Project: findutils
            Submitted by: robiol262
            Submitted on: Freitag 30.05.2008 um 14:18
                Category: find
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.0
           Fixed Release: None



On commands like
find sourcedirs  -sometests  -exec  cp '{}' destinationdir/ +
find complains
find: missing argument to `-exec'
because the placeholder '{}' must TERMINATE the command called by find.

Usability of find would be improved, if
(a)  above mentioned error message would be more instructive,
(b)  the currently redundant placeholder could be omitted or even better,
(c)  if the placeholder would be really functional and allow find usage like
my example above.

WORKAROUNDS are known but they lag the advantages of find operator '+':
use trailing \; instead of + or
use find ... -print0 | xargs -0 ...


Reply to this item at:


  Nachricht geschickt von/durch Savannah

reply via email to

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