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

--glob not processing absolute paths correctly #479

Closed
Olie440 opened this issue May 10, 2017 · 1 comment
Closed

--glob not processing absolute paths correctly #479

Olie440 opened this issue May 10, 2017 · 1 comment

Comments

@Olie440
Copy link

Olie440 commented May 10, 2017

Glob appears to calculating all paths relatively even if the start with /:
image

OS: MacOS 10.12.4 (darwin 16.5.0)
RipGrep version: ripgrep 0.5.1

@BurntSushi
Copy link
Owner

I don't think this is a bug. I don't see how to implement this behavior. Notice that grep has the same behavior:

$ tree
.
└── foo

0 directories, 1 file
$ cat foo
test
$ rg test -g '!/tmp/ripgrep-479/test'
foo
1:test
$ grep -r test --exclude /tmp/ripgrep-479/test
foo:test

Perhpas this is a documentation bug.

@Olie440 Olie440 closed this as completed May 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants