-
Notifications
You must be signed in to change notification settings - Fork 111
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
Restricting search to starting filesystem of all paths #349
Comments
Yes, I agree that this is a valid use case to only recursively search the specified targets without descending into other FS. Like The only question is whether we need yet another long option for this. Because we have two related options |
Seems reasonable, and I agree that avoiding another flag is a good thing™ |
I've implemented the new feature in my dev version to try it out. So you can use For the help info and man page, I'm considering the following update:
As a minor point, I want to clarify that if no search targets are explicitly specified, then implicitly the search target is the working directory. In that case, only the FS associated with the working directory is searched. Alternative wording:
I like this a bit better. Less confusing. No double negation in a sentence. To avoid breaking symmetry of these two options, a default
|
Very good point! |
In that case it's the same as |
Implemented. |
I'd like to always restrict the search to the filesystems of all paths which are given on the command line during interactive usage, as
find -xdev
does. As a common example:ug pattern /var
should search inside the filesystem of /var, but exclude any other fs (such as a nested tmpfs). The --include-fs requires doubling all the arguments, which doesn't really work well with shell aliases or functions. For example, if I give two starting paths on two filesystems, it's generally implied I want both filesystems to be included:
ug pattern /fs1 /fs2
which would require
--include-fs=/fs1,/fs2
or two extra args. The suggested--include-fs=.
is not really a good substitute for this behavior, since very often $CWD has nothing to do with the searched paths.The text was updated successfully, but these errors were encountered: