GNU bug report logs - #58134
grep for windows Include GLOB pattern with double star doesn't seem to work

Previous Next

Package: grep;

Reported by: Alex Benoit <Alexandre.Benoit <at> microsoft.com>

Date: Wed, 28 Sep 2022 08:45:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 58134-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Alex Benoit <Alexandre.Benoit <at> microsoft.com>
Cc: 58134-done <at> debbugs.gnu.org
Subject: Re: bug#58134: grep for windows Include GLOB pattern with double star
 doesn't seem to work
Date: Wed, 28 Sep 2022 10:07:27 -0700
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't matter.


> What is the proper way to do it?

Looks like you found it already.




This bug report was last modified 2 years and 236 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.