bug#58134: grep for windows Include GLOB pattern with double star doesn't seem to work

2022-09-28 Thread Alex Benoit via Bug reports for GNU grep
AM To: Alex Benoit Cc: 58134-d...@debbugs.gnu.org Subject: [EXTERNAL] Re: bug#58134: grep for windows Include GLOB pattern with double star doesn't seem to work On 9/27/22 16:19, Alex Benoit via Bug reports for GNU grep wrote: > However, this worked: > grep -rl --include="*.x

bug#58134: grep for windows Include GLOB pattern with double star doesn't seem to work

2022-09-28 Thread Alex Benoit via Bug reports for GNU grep
esday, September 28, 2022 10:42 AM To: Alex Benoit Cc: 58134-d...@debbugs.gnu.org Subject: Re: [EXTERNAL] Re: bug#58134: grep for windows Include GLOB pattern with double star doesn't seem to work [You don't often get email from egg...@cs.ucla.edu. Learn why this is important at

bug#58134: grep for windows Include GLOB pattern with double star doesn't seem to work

2022-09-28 Thread Paul Eggert
On 9/27/22 16:19, Alex Benoit via Bug reports for GNU grep wrote: However, this worked: grep -rl --include="*.xml" foo . Is the double star supported on Windows? Yes and no. It's a POSIX glob, which means "**" is equivalent to "*", and that's what's supported. Whether it's MS-Windows shouldn'

bug#58134: grep for windows Include GLOB pattern with double star doesn't seem to work

2022-09-28 Thread Paul Eggert
On 9/28/22 10:29, Alex Benoit wrote: For instance, if I run the grep command from /, and I have the files: /a/b/folder/file.xml /a/b/file2.xml /a/folder/file3.xml /folder/file4.xml I want to match the file.xml, file3.xml and file4.xml, but not file2.xml, because it is not under a folder named "

bug#58134: grep for windows Include GLOB pattern with double star doesn't seem to work

2022-09-28 Thread Alex Benoit via Bug reports for GNU grep
Hello, I was using grep for Windows version 3.5. I was trying to pattern match files. At first, I thought I could put a regex as the file pattern in the command, but that didn't seem to work. Then I looked at the --include option. I tried grep -l --include="**/*.xml" foo . grep -l --include=