bug-findutils
[Top][All Lists]
Advanced

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

[bug #54860] Less performance of -execdir echo {} +


From: Ahmad ElKomey
Subject: [bug #54860] Less performance of -execdir echo {} +
Date: Wed, 17 Oct 2018 18:31:43 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?54860>

                 Summary: Less performance of -execdir echo {} +
                 Project: findutils
            Submitted by: ahmad_elkomey
            Submitted on: Wed 17 Oct 2018 10:31:41 PM UTC
                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: None
           Fixed Release: None

    _______________________________________________________

Details:

I have this directory structure with some trivial files
.
├── dir
│   ├── bar.c
│   └── one.c
├── dir-2
│   ├── another.c
│   ├── dir-4
│   │   └── file
│   ├── dir-5
│   │   └── file
│   ├── file
│   └── foo.c
├── dir-3
│   ├── dir-4
│   │   └── file
│   ├── dir-5
│   │   └── file
│   └── file
└── file

7 directories, 11 files

Running the command:

find -iname "*c" -exec echo '{}' +

returns

./dir-2/foo.c ./dir-2/another.c ./dir/bar.c ./dir/one.c

which is as expected.

But when I run:

find -iname "*c" -execdir echo '{}' +

it returns

./foo.c
./another.c
./bar.c ./one.c


And I was expecting

./foo.c ./another.c
./bar.c ./one.c


I'm using find (GNU findutils) 4.7.0-git




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?54860>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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