[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #29949] find -execdr does not change working directory
From: |
Andreas Metzler |
Subject: |
[bug #29949] find -execdr does not change working directory |
Date: |
Sun, 23 May 2010 16:01:10 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.19) Gecko/2010033100 Iceweasel/3.0.6 (Debian-3.0.6-3) |
URL:
<http://savannah.gnu.org/bugs/?29949>
Summary: find -execdr does not change working directory
Project: findutils
Submitted by: ametzler
Submitted on: So 23 Mai 2010 18:01:09 CEST
Category: find
Severity: 3 - Normal
Item Group: Wrong result
Status: None
Privacy: Public
Assigned to: None
Originator Name: Raja R Harinath
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.5.9
Fixed Release: None
_______________________________________________________
Details:
Hello,
this is http://bugs.debian.org/582717 reported by Raja R Harinath
--------------------------------
Running the following fragment
d=$(mktemp -d); mkdir -p $d/{foo,bar,baz}/bug; find $d -type d -name bug
-print -execdir pwd \;
at a command prompt gives me:
/tmp/tmp.UqsljYxydZ/bar/bug
/tmp/tmp.UqsljYxydZ/bar
/tmp/tmp.UqsljYxydZ/baz/bug
/tmp/tmp.UqsljYxydZ/bar
/tmp/tmp.UqsljYxydZ/foo/bug
/tmp/tmp.UqsljYxydZ/bar
The expected output, which is correctly obtained with version 4.4.2-1 from
testing is something like:
/tmp/tmp.5nfIU7cjDH/bar/bug
/tmp/tmp.5nfIU7cjDH/bar
/tmp/tmp.5nfIU7cjDH/baz/bug
/tmp/tmp.5nfIU7cjDH/baz
/tmp/tmp.5nfIU7cjDH/foo/bug
/tmp/tmp.5nfIU7cjDH/foo
--------------------------------
Note how pwd continues to stay at /tmp/.../bar.
I have confirmed the behavior, it also affects oldfind. This is a new bug,
4.5.8 behaves correctly.
cu andreas
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?29949>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
- [bug #29949] find -execdr does not change working directory,
Andreas Metzler <=