# Please update grep in the Windows Git distro

3 messages from 2013-12-02 to 2013-12-02. Participants: Tom Byrer, Jonathan Nieder, Antoine Pelisse.
Thread: https://gitlist.dev/t/35452

## Tom Byrer, 2013-12-02 19:36

Subject: Please update grep in the Windows Git distro
Message-ID: <CACAE+cGBvwVRjm8=-3e+w_xQozP1nfsphK4-ndky2yZoCoMjxw@mail.gmail.com>
URL: https://gitlist.dev/e/CACAE%2BcGBvwVRjm8%3D-3e%2Bw_xQozP1nfsphK4-ndky2yZoCoMjxw%40mail.gmail.com

```
Seems that grep.exe is too outdated for some scripts:
https://github.com/creationix/nvm/issues/75#issuecomment-13735767

Updating to a newer grep distro fixes the problem:
https://github.com/creationix/nvm/issues/75#issuecomment-29054164

Seems other OSX & Linux don't have problems with the same scripts.

If the grep for the Git for Windows could be updated next, that would
be helpful.

cheers

```

## Jonathan Nieder, 2013-12-02 19:59

Subject: Re: Please update grep in the Windows Git distro
Message-ID: <20131202195951.GA29959@google.com>
URL: https://gitlist.dev/e/20131202195951.GA29959%40google.com
In-Reply-To: <CACAE+cGBvwVRjm8=-3e+w_xQozP1nfsphK4-ndky2yZoCoMjxw@mail.gmail.com>

```
(cc-ing the msysgit@ group, which maintains Git for Windows)
Hi,

Tom Byrer wrote:

> Seems that grep.exe is too outdated for some scripts:
> https://github.com/creationix/nvm/issues/75#issuecomment-13735767
>
> Updating to a newer grep distro fixes the problem:
> https://github.com/creationix/nvm/issues/75#issuecomment-29054164

If you have time for it, your best bet is to contribute this change by
forking msysgit.git on GitHub.

See
 https://github.com/msysgit/msysgit/wiki#how-to-participate
 https://github.com/msysgit/msysgit/wiki/Frequently-Asked-Questions#i-want-to-upgrade-perl-how-do-i-do-that
for hints.  (Short answer: the usual way would be to add a
/src/grep/release.sh script that builds and installs 'grep', imitating
others /src/*/release.sh scripts, to make it easy to keep grep.exe up
to date in the future.)

Thanks for your interest, and hope that helps,
Jonathan

-- 
-- 
*** Please reply-to-all at all times ***
*** (do not pretend to know who is subscribed and who is not) ***
*** Please avoid top-posting. ***
The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.

You received this message because you are subscribed to the Google
Groups "msysGit" group.
To post to this group, send email to msysgit@googlegroups.com
To unsubscribe from this group, send email to
msysgit+unsubscribe@googlegroups.com
For more options, and view previous threads, visit this group at
http://groups.google.com/group/msysgit?hl=en_US?hl=en

--- 
You received this message because you are subscribed to the Google Groups "msysGit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to msysgit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

```

## Antoine Pelisse, 2013-12-02 20:08

Subject: Re: Please update grep in the Windows Git distro
Message-ID: <CALWbr2zMfviXJfRVOUh+GgMTQZuBHAdjRdumoYG_QYmYOuUamQ@mail.gmail.com>
URL: https://gitlist.dev/e/CALWbr2zMfviXJfRVOUh%2BGgMTQZuBHAdjRdumoYG_QYmYOuUamQ%40mail.gmail.com
In-Reply-To: <CACAE+cGBvwVRjm8=-3e+w_xQozP1nfsphK4-ndky2yZoCoMjxw@mail.gmail.com>

```
On Mon, Dec 2, 2013 at 8:36 PM, Tom Byrer <tombyrer@gmail.com> wrote:
> Seems that grep.exe is too outdated for some scripts:
> https://github.com/creationix/nvm/issues/75#issuecomment-13735767

-o is not an option of POSIX grep [1] and you should probably not rely
on it for portable script.

[1]: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/grep.html

```
