Given
find . -exec foo{}bar \;
GNU find will replace `{}` by the filename. This commit matches that
behavior.
Note that this is not required by the POSIX spec.
The GNU testsuite doesn't cover this case, so I've added a test in this
repo.
* Deleted vertical whitespace
In an attempt to get around a mistake I made when merging from the
master fork
* Added a default implementation for has_side_effects
And removed all the "return false" implementations (as specified by most
of the Matchers).
* Added support for -exec and -execdir
* Fixed path_to_testing_commandline
* Minor tweaks from code review
* Added support for -perm
* Fixed string constant
* Fixed error caused by merging changes
* Tweaks after code review
* Fixed windows compatability. This required
- changing a lot of test code to supply/expect backslashes rather than
slashes when running on windows
- tweaking the way testing-commandline reported its args (debug format
escapes backslashes when printing strings)
- changing the NewerMatcher to get metadata from fs::metadata() rather
than from File's metadata method (the latter caused mysterious test
failures, which I didn't bother tracking down becasue the former is more
efficient anyway)
- hiding more of perm.rs behind #[cfg(unix)] to stop "unused X"
warnings
* Revert "Fixed windows compatability. This required"
This reverts commit 0e2c385237.
* Revert "Revert "Fixed windows compatability. This required""
This reverts commit 384da6d2f4.
- changing a lot of test code to supply/expect backslashes rather than
slashes when running on windows
- tweaking the way testing-commandline reported its args (debug format
escapes backslashes when printing strings)
- changing the NewerMatcher to get metadata from fs::metadata() rather
than from File's metadata method (the latter caused mysterious test
failures, which I didn't bother tracking down becasue the former is more
efficient anyway)
- hiding more of perm.rs behind #[cfg(unix)] to stop "unused X"
warnings
* Deleted vertical whitespace
In an attempt to get around a mistake I made when merging from the
master fork
* Added a default implementation for has_side_effects
And removed all the "return false" implementations (as specified by most
of the Matchers).
* Added support for -exec and -execdir
* Fixed path_to_testing_commandline
* Minor tweaks from code review