[Top][All Lists]

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

[bug #18554] feat req: -exec cmd {} more args +

From: Egmont Koblinger
Subject: [bug #18554] feat req: -exec cmd {} more args +
Date: Tue, 19 Dec 2006 12:58:51 +0000
User-agent: Opera/9.01 (X11; Linux i686; U; en)


                 Summary: feat req: -exec cmd {} more args +
                 Project: findutils
            Submitted by: egmont
            Submitted on: Tuesday 12/19/2006 at 12:58
                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.2.29
           Fixed Release: None



Currently find refuses to have command line options between {} and +. This
way the filenames found by "find" can only be put at the end of the argument

If you want to copy or move some files, the "cp" and "mv" commands just
happen to have a --target-directory option so that you can use an unusual
order, specify the target first and the source files later. I think these
were added to support using cp or mv with xargs or find -exec {} +.

There are other utilities, such as scp, rsync and probably a whole lot more
that do not have this option, they require the target directory to be the
last option. Currently they can't really be used in combination with find.

So please add support for having extra arguments between {} and +. As I see,
this wouldn't cause ambiguity or other problems when parsing the command
line. When an -exec or -execdir is seen, first "find" should look for the
next ';' or '+' argument. When it is found and it is a '+', it should check
that there's exactly one '{}' before that. Checking whether the constructed
command line would be too long is easy too; this time it doesn't matter if
these extra args are at the end or at the beginning, they can be taken into
account at once.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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