Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-execdir doesn't chdir for the root #28

Closed
tavianator opened this issue Jun 14, 2017 · 2 comments · Fixed by #92
Closed

-execdir doesn't chdir for the root #28

tavianator opened this issue Jun 14, 2017 · 2 comments · Fixed by #92
Labels

Comments

@tavianator
Copy link
Contributor

$ ./target/debug/find / -maxdepth 0 -execdir pwd \;
/home/tavianator/code/uutils/findutils
$ find / -maxdepth 0 -execdir pwd \;
/
@mcharsley
Copy link
Contributor

Weirdly, my copy of gnu find behaves the same as the rust version:

$ cd /tmp
$ /usr/bin/find / -maxdepth 0 -execdir pwd ;
/tmp
$ find --version
find (GNU findutils) 4.4.2
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Built using GNU gnulib version e5573b1bad88bfabcda181b9e0125fb0c52b7d3b
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS() CBO(level=0)

@tavianator
Copy link
Contributor Author

Indeed, but your copy of GNU find is 10 years old :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants