"Root" glob relativity to PWD #2950
-
(I did a search for "glob" and looked over those questions, but I didn't see one talking about this.) This question concerns a glob with a leading My understanding is that the pattern I have this setup:
Here are a few cases:
So, perhaps you'll say, "Yes, 'root' globs are always evaluated relative to the PWD rather than considering any path or paths provided as individual 'roots' for those globs." If so, then it's confirmed. I just need to manage the PWD as well as any provided paths if I want to use 'root' globs. Maybe there's more to it though? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yeah I think the sensible behavior here is that |
Beta Was this translation helpful? Give feedback.
Yeah I think the sensible behavior here is that
/
is always interpreted relative to the working directory of ripgrep. I think changing it depending on the directory being searched leads to more complicated semantics.