{"thread":{"id":"48393","subject":"completion troubles with bash","startedAt":"2018-05-01T12:17:57Z","lastAt":"2018-05-01T12:26:35Z","messageCount":2,"participants":["Pascal Bourdier","Duy Nguyen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"346265","messageId":"CAPQz56bts8zFfUHyKJqnefQoH97L5TTA-k3be=5HsdeEbcMqOA@mail.gmail.com","threadId":"48393","inReplyTo":null,"subject":"completion troubles with bash","fromName":"Pascal Bourdier","fromEmail":"pascal.bourdier@gmail.com","sentAt":"2018-05-01T12:17:51Z","receivedAt":"2018-05-01T12:17:57Z","isPatch":false,"sender":{"key":"pascal.bourdier@gmail.com","avatar":null},"body":"Hi,\n\n\nIf \"GREP_OPTIONS\" is set to '--color=always' , then the git completion\nsend some escape characters like this :\n\n^[[1;35;40m^[[K                  d^[[m^[[Kiff-files               mergetool\na^[[m^[[Kdd                      d^[[m^[[Kiff-index               mv\na^[[m^[[Kddremove                d^[[m^[[Kiff-tree                name-rev\na^[[m^[[Km                       d^[[m^[[Kifftool                 notes\n...\n\n\nSo you could find a small patch to disable color with \"grep\" in attachment.\n\n\nRegards,\n\n\nPascal Bourdier\n\n\ndiff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash\nindex b09c8a236..0bc55b9ee 100644\n--- a/contrib/completion/git-completion.bash\n+++ b/contrib/completion/git-completion.bash\n@@ -837,7 +837,7 @@ __git_commands () {\n \tthen\n \t\tprintf \"%s\" \"${GIT_TESTING_COMMAND_COMPLETION}\"\n \telse\n-\t\tgit help -a|egrep '^  [a-zA-Z0-9]'\n+\t\tgit help -a|egrep --color=never '^  [a-zA-Z0-9]'\n \tfi\n }\n \n"},{"id":"346267","messageId":"CACsJy8AD2bjdRyNDBxcBOEWSknn=kzXfKGtkaYtZmiLshjUg3w@mail.gmail.com","threadId":"48393","inReplyTo":"CAPQz56bts8zFfUHyKJqnefQoH97L5TTA-k3be=5HsdeEbcMqOA@mail.gmail.com","subject":"Re: completion troubles with bash","fromName":"Duy Nguyen","fromEmail":"pclouds@gmail.com","sentAt":"2018-05-01T12:26:02Z","receivedAt":"2018-05-01T12:26:35Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Tue, May 1, 2018 at 2:17 PM, Pascal Bourdier\n<pascal.bourdier@gmail.com> wrote:\n> Hi,\n>\n>\n> If \"GREP_OPTIONS\" is set to '--color=always' , then the git completion\n> send some escape characters like this :\n>\n> ^[[1;35;40m^[[K                  d^[[m^[[Kiff-files               mergetool\n> a^[[m^[[Kdd                      d^[[m^[[Kiff-index               mv\n> a^[[m^[[Kddremove                d^[[m^[[Kiff-tree                name-rev\n> a^[[m^[[Km                       d^[[m^[[Kifftool                 notes\n> ...\n>\n>\n> So you could find a small patch to disable color with \"grep\" in attachment.\n\nYep. The topic 'nd/command-list' on 'pu' accidentally fixes this too\nsince it removes the use of egrep.\n\n>\n>\n> Regards,\n>\n>\n> Pascal Bourdier\n\n\n\n-- \nDuy\n"}]}