On 2009-09-29 Jim Lebeau <j...@ladsnet.com> wrote:
> Package: findutils
> Version: 4.4.0-2
> Severity: normal
> File: /usr/bin/find


> >From the manpage:
>        -execdir command ;
>               Like -exec, but the specified command is run from the
>               subdirectory containing the matched file, which is not
>               no

> Debian Example
> p...@lenore:/var$ find -L . -name dreary.html -exec ls {} \;
> ../dreary.example.com/html/dreary.html
> p...@lenore:/var$ find -L . -name dreary.html -execdir ls {} \;
> .././dreary.example.com/html/dreary.html
[...]
> Centos Example
> [r...@lion apache-tomcat]# find -name catalina.out.1 -exec ls {} \;
> ../apache-tomcat-5.5.7/logs/catalina.out.1
> [r...@lion apache-tomcat]# find -name catalina.out.1 -execdir ls {} \;
> ../catalina.out.1
[...]

Hello,
thank you for the report. I have forwarded the issue upstream.

The major difference between the two examples seems to be the presence
of the -L switch and not the underlying OS. ;-)

cu andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to