Given:
- I am running GNU/Linux
- I have some Git repositories in
/path/to/repos. - I want to check whether any files in the
myreporepository were modified after a particular time. find /path/to/repos/myrepo -type lprints no results, showing thatmyrepo's directory structure contains no symlinks.- The directory
/path/to/repos/myrepo/.githas a modification time more recent than the one I'm interested in, but no other files inmyrepoor any of its subdirectories do.
When I enter the following command, I see no results:
find /path/to/repos/myrepo -name .git -prune -o -path '/path/to/repos/myrepo/*' -newermt '2020-05-18 15:52:34' -print
Yet when I add a trailing slash to the starting point,
find /path/to/repos/myrepo/ -name .git -prune -o -path '/path/to/repos/myrepo/*' -newermt '2020-05-18 15:52:34' -print
the command prints /path/to/repos/myrepo/.
Why this difference?