{"thread":{"id":"35219","subject":"git-completion.bash error","startedAt":"2013-10-27T20:59:32Z","lastAt":"2013-10-28T05:31:41Z","messageCount":3,"participants":["Gabriel","Eric Sunshine"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"229618","messageId":"CAGvuA0iGrF5jrUSCjT7-SR85i2OhBwQHfjj4+krAFfz5wnxx8w@mail.gmail.com","threadId":"35219","inReplyTo":null,"subject":"git-completion.bash error","fromName":"Gabriel","fromEmail":"gabriel.so@gmail.com","sentAt":"2013-10-27T20:59:32Z","receivedAt":"2013-10-27T20:59:32Z","isPatch":false,"sender":{"key":"gabriel.so@gmail.com","avatar":null},"body":"Hi.\n\nFirst of all, thank you and congratulations for the awesome work :)\n\nI've just made a clean install of OS X Mavericks and installed Git via\nHomebrew, which obviously includes the contrib files.\n\nI sourced the git-completion.bash into my profile and I get stuck on a\nerror every time I try to use the autocomplete. The error outputted\nis:\n\negrep: ^ [a-zA-Z0-9]: No such file or directory\n\nI believe this is related to this line (this commands outputs the same\nerror when entered directly):\nhttps://github.com/git/git/blob/master/contrib/completion/git-completion.bash#L614\n\nI don't know if this issue is directly related to OS X Mavericks or\nanything else.\n\nThanks.\n"},{"id":"229623","messageId":"CAPig+cQuh0QEbmDxNMHgvhmJ7AFgvP70qvJhfVw3fz6YxaME7w@mail.gmail.com","threadId":"35219","inReplyTo":"CAGvuA0iGrF5jrUSCjT7-SR85i2OhBwQHfjj4+krAFfz5wnxx8w@mail.gmail.com","subject":"Re: git-completion.bash error","fromName":"Eric Sunshine","fromEmail":"sunshine@sunshineco.com","sentAt":"2013-10-27T22:34:10Z","receivedAt":"2013-10-27T22:34:10Z","isPatch":false,"sender":{"key":"sunshine@sunshineco.com","avatar":"https://avatars.githubusercontent.com/u/163641?v=4"},"body":"On Sun, Oct 27, 2013 at 4:59 PM, Gabriel <gabriel.so@gmail.com> wrote:\n> I've just made a clean install of OS X Mavericks and installed Git via\n> Homebrew, which obviously includes the contrib files.\n>\n> I sourced the git-completion.bash into my profile and I get stuck on a\n> error every time I try to use the autocomplete. The error outputted\n> is:\n>\n> egrep: ^ [a-zA-Z0-9]: No such file or directory\n>\n> I believe this is related to this line (this commands outputs the same\n> error when entered directly):\n> https://github.com/git/git/blob/master/contrib/completion/git-completion.bash#L614\n\nUnable to reproduce on Mavericks either via the completion script or\nmanual entry.\n\n> I don't know if this issue is directly related to OS X Mavericks or\n> anything else.\n"},{"id":"229627","messageId":"CAPig+cRfrr8FjGtk7uFzfP6xBGzFabSPb4oi=EcNV1-OfQZ5eA@mail.gmail.com","threadId":"35219","inReplyTo":"CAGvuA0gkKWpLXwQm6ipGfWhzpiT-SFCCKxxvvN+FbO8i4_hmPg@mail.gmail.com","subject":"Re: git-completion.bash error","fromName":"Eric Sunshine","fromEmail":"sunshine@sunshineco.com","sentAt":"2013-10-28T05:31:41Z","receivedAt":"2013-10-28T05:31:41Z","isPatch":false,"sender":{"key":"sunshine@sunshineco.com","avatar":"https://avatars.githubusercontent.com/u/163641?v=4"},"body":"[re-adding git mailing list]\n\nPlease do use Reply All and respond inline (as below) rather than top-posting.\n\nOn Sun, Oct 27, 2013 at 8:47 PM, Gabriel <gabriel.so@gmail.com> wrote:\n> I have a possible broken \"shell pipe\".\n>\n> grep/egrep works fine when I pass a pattern and a file or folder, but\n> it breaks after pipe.\n>\n> The content of the line that breaks on my machine is:\n> git help -a|egrep '^  [a-zA-Z0-9]'\n\nAre you using a broken egrep? On Mavericks, mine shows:\n\n% type egrep\negrep is /usr/bin/egrep\n% egrep --version\negrep (BSD grep) 2.5.1-FreeBSD\n\n\n> This commands breaks outputting the regexp not being a valid file or directory.\n>\n> I'll keep investigating but I've never seen a broken shell pipe function =(\n>\n> Thanks\n>\n> On Sun, Oct 27, 2013 at 8:34 PM, Eric Sunshine <sunshine@sunshineco.com> wrote:\n>> On Sun, Oct 27, 2013 at 4:59 PM, Gabriel <gabriel.so@gmail.com> wrote:\n>>> I've just made a clean install of OS X Mavericks and installed Git via\n>>> Homebrew, which obviously includes the contrib files.\n>>>\n>>> I sourced the git-completion.bash into my profile and I get stuck on a\n>>> error every time I try to use the autocomplete. The error outputted\n>>> is:\n>>>\n>>> egrep: ^ [a-zA-Z0-9]: No such file or directory\n>>>\n>>> I believe this is related to this line (this commands outputs the same\n>>> error when entered directly):\n>>> https://github.com/git/git/blob/master/contrib/completion/git-completion.bash#L614\n>>\n>> Unable to reproduce on Mavericks either via the completion script or\n>> manual entry.\n>>\n>>> I don't know if this issue is directly related to OS X Mavericks or\n>>> anything else.\n"}]}