# git-completion.bash error

3 messages from 2013-10-27 to 2013-10-28. Participants: Gabriel, Eric Sunshine.
Thread: https://gitlist.dev/t/35219

## Gabriel, 2013-10-27 20:59

Subject: git-completion.bash error
Message-ID: <CAGvuA0iGrF5jrUSCjT7-SR85i2OhBwQHfjj4+krAFfz5wnxx8w@mail.gmail.com>
URL: https://gitlist.dev/e/CAGvuA0iGrF5jrUSCjT7-SR85i2OhBwQHfjj4%2BkrAFfz5wnxx8w%40mail.gmail.com

```
Hi.

First of all, thank you and congratulations for the awesome work :)

I've just made a clean install of OS X Mavericks and installed Git via
Homebrew, which obviously includes the contrib files.

I sourced the git-completion.bash into my profile and I get stuck on a
error every time I try to use the autocomplete. The error outputted
is:

egrep: ^ [a-zA-Z0-9]: No such file or directory

I believe this is related to this line (this commands outputs the same
error when entered directly):
https://github.com/git/git/blob/master/contrib/completion/git-completion.bash#L614

I don't know if this issue is directly related to OS X Mavericks or
anything else.

Thanks.

```

## Eric Sunshine, 2013-10-27 22:34

Subject: Re: git-completion.bash error
Message-ID: <CAPig+cQuh0QEbmDxNMHgvhmJ7AFgvP70qvJhfVw3fz6YxaME7w@mail.gmail.com>
URL: https://gitlist.dev/e/CAPig%2BcQuh0QEbmDxNMHgvhmJ7AFgvP70qvJhfVw3fz6YxaME7w%40mail.gmail.com
In-Reply-To: <CAGvuA0iGrF5jrUSCjT7-SR85i2OhBwQHfjj4+krAFfz5wnxx8w@mail.gmail.com>

```
On Sun, Oct 27, 2013 at 4:59 PM, Gabriel <gabriel.so@gmail.com> wrote:
> I've just made a clean install of OS X Mavericks and installed Git via
> Homebrew, which obviously includes the contrib files.
>
> I sourced the git-completion.bash into my profile and I get stuck on a
> error every time I try to use the autocomplete. The error outputted
> is:
>
> egrep: ^ [a-zA-Z0-9]: No such file or directory
>
> I believe this is related to this line (this commands outputs the same
> error when entered directly):
> https://github.com/git/git/blob/master/contrib/completion/git-completion.bash#L614

Unable to reproduce on Mavericks either via the completion script or
manual entry.

> I don't know if this issue is directly related to OS X Mavericks or
> anything else.

```

## Eric Sunshine, 2013-10-28 05:31

Subject: Re: git-completion.bash error
Message-ID: <CAPig+cRfrr8FjGtk7uFzfP6xBGzFabSPb4oi=EcNV1-OfQZ5eA@mail.gmail.com>
URL: https://gitlist.dev/e/CAPig%2BcRfrr8FjGtk7uFzfP6xBGzFabSPb4oi%3DEcNV1-OfQZ5eA%40mail.gmail.com
In-Reply-To: <CAGvuA0gkKWpLXwQm6ipGfWhzpiT-SFCCKxxvvN+FbO8i4_hmPg@mail.gmail.com>

```
[re-adding git mailing list]

Please do use Reply All and respond inline (as below) rather than top-posting.

On Sun, Oct 27, 2013 at 8:47 PM, Gabriel <gabriel.so@gmail.com> wrote:
> I have a possible broken "shell pipe".
>
> grep/egrep works fine when I pass a pattern and a file or folder, but
> it breaks after pipe.
>
> The content of the line that breaks on my machine is:
> git help -a|egrep '^  [a-zA-Z0-9]'

Are you using a broken egrep? On Mavericks, mine shows:

% type egrep
egrep is /usr/bin/egrep
% egrep --version
egrep (BSD grep) 2.5.1-FreeBSD


> This commands breaks outputting the regexp not being a valid file or directory.
>
> I'll keep investigating but I've never seen a broken shell pipe function =(
>
> Thanks
>
> On Sun, Oct 27, 2013 at 8:34 PM, Eric Sunshine <sunshine@sunshineco.com> wrote:
>> On Sun, Oct 27, 2013 at 4:59 PM, Gabriel <gabriel.so@gmail.com> wrote:
>>> I've just made a clean install of OS X Mavericks and installed Git via
>>> Homebrew, which obviously includes the contrib files.
>>>
>>> I sourced the git-completion.bash into my profile and I get stuck on a
>>> error every time I try to use the autocomplete. The error outputted
>>> is:
>>>
>>> egrep: ^ [a-zA-Z0-9]: No such file or directory
>>>
>>> I believe this is related to this line (this commands outputs the same
>>> error when entered directly):
>>> https://github.com/git/git/blob/master/contrib/completion/git-completion.bash#L614
>>
>> Unable to reproduce on Mavericks either via the completion script or
>> manual entry.
>>
>>> I don't know if this issue is directly related to OS X Mavericks or
>>> anything else.

```
