bug-findutils
[Top][All Lists]
Advanced

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

[bug #61501] find -execdir wrong root item path


From: anonymous
Subject: [bug #61501] find -execdir wrong root item path
Date: Wed, 17 Nov 2021 11:39:23 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

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

                 Summary: find -execdir wrong root item path
                 Project: findutils
            Submitted by: None
            Submitted on: Wed 17 Nov 2021 04:39:21 PM UTC
                Category: find
                Severity: 3 - Normal
              Item Group: Wrong result
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Skeleton Zombie
        Originator Email: skeletonzombie17@web.de
             Open/Closed: Open
                 Release: None
         Discussion Lock: Any
           Fixed Release: 4.8.0

    _______________________________________________________

Details:

find -execdir gives the wrong path for the root item

$ find . -execdir printf '%s\n' '{}' ';'
./.       # expect "."
./apple
./banana

$ find /foo -execdir printf '%s\n' '{}' ';'
./foo     # expect "."
./apple
./banana


for -exec the result is correct

$ find . -exec printf '%s\n' '{}' ';'
.
./apple
./banana

$ find /foo -exec printf '%s\n' '{}' ';'
/foo
/foo/apple
/foo/banana


Thanks and Greetings





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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