-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Combined options #568
Comments
The
So when you give it
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following commands in the ripgrep root folder return different results.
rg -rni hello
globset/src/glob.rs
1166: matches!(matchpat1, "*ni.txt", "ni.txt");
1167: matches!(matchpat2, "*ni.txt", "gareth_says_ni.txt");
1168: matches!(matchpat3, "*ni.txt", "some/path/to/ni.txt");
1169: matches!(matchpat4, "*ni.txt", "some\path\to\ni.txt");
1170: matches!(matchpat5, "*ni.txt", "/an/absolute/path/to/ni.txt");
1171: matches!(matchpat6, "*some/path/to/ni.txt", "some/path/to/ni.txt");
1172: matches!(matchpat7, "*some/path/to/ni.txt",
1173: "a/bigger/some/path/to/ni.txt");
1223: nmatches!(matchnot16, "*ni.txt", "ni.txt-and-then-some");
1224: nmatches!(matchnot17, "*ni.txt", "goodbye.txt");
1225: nmatches!(matchnot18, "*some/path/to/ni.txt",
1226: "some/path/to/ni.txt-and-then-some");
1227: nmatches!(matchnot19, "*some/path/to/ni.txt",
1228: "some/other/path/to/ni.txt");
whereas
rg -r -n -i hello
globset/src/glob.rs
1166: matches!(matchpat1, "*hello.txt", "hello.txt");
1167: matches!(matchpat2, "*hello.txt", "gareth_says_hello.txt");
1168: matches!(matchpat3, "*hello.txt", "some/path/to/hello.txt");
1169: matches!(matchpat4, "*hello.txt", "some\path\to\hello.txt");
1170: matches!(matchpat5, "*hello.txt", "/an/absolute/path/to/hello.txt");
1171: matches!(matchpat6, "*some/path/to/hello.txt", "some/path/to/hello.txt");
1172: matches!(matchpat7, "*some/path/to/hello.txt",
1173: "a/bigger/some/path/to/hello.txt");
1223: nmatches!(matchnot16, "*hello.txt", "hello.txt-and-then-some");
1224: nmatches!(matchnot17, "*hello.txt", "goodbye.txt");
1225: nmatches!(matchnot18, "*some/path/to/hello.txt",
1226: "some/path/to/hello.txt-and-then-some");
1227: nmatches!(matchnot19, "*some/path/to/hello.txt",
1228: "some/other/path/to/hello.txt");
grep returns in both cases the same result.
The text was updated successfully, but these errors were encountered: