{"thread":{"id":"21650","subject":"bash completion on 4.0 broken?","startedAt":"2009-11-17T06:46:31Z","lastAt":"2009-11-17T09:54:50Z","messageCount":2,"participants":["Stephen Boyd","Michael J Gruber"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"127740","messageId":"4B0246C7.6020401@gmail.com","threadId":"21650","inReplyTo":null,"subject":"bash completion on 4.0 broken?","fromName":"Stephen Boyd","fromEmail":"bebarino@gmail.com","sentAt":"2009-11-17T06:46:31Z","receivedAt":"2009-11-17T06:46:31Z","isPatch":false,"sender":{"key":"bebarino@gmail.com","avatar":"https://avatars.githubusercontent.com/u/38832?v=4"},"body":"When I try\n\n    git show --pretty=<TAB><TAB>\n\nI get a list of filenames and not the list of pretty formats.\n\nI've debugged a little and see that the cur variable in _git_show () is \nset to '=' when it should be '--pretty='. So it looks like something is \ncausing the command line to be split weirdly. Looking at the bash \nNEWS[1] for 4.0 I see\n\ni.  The programmable completion code now uses the same set of characters as\n    readline when breaking the command line into a list of words.\n\n\nwhich causes me to believe this is why it's broken now. I've tried \nremoving '=' from COMP_WORDBREAKS and that shows the list of formats \ncorrectly, but then causes the entire '--pretty=' to be replaced with \nthe selected format.\n\nAnyone else seeing the same problem or is my system just b0rked?\n\n$ bash --version\nGNU bash, version 4.0.35(2)-release (x86_64-pc-linux-gnu)\n\nReferences:\n[1] http://tiswww.case.edu/php/chet/bash/NEWS\n"},{"id":"127758","messageId":"4B0272EA.5020708@drmicha.warpmail.net","threadId":"21650","inReplyTo":"4B0246C7.6020401@gmail.com","subject":"Re: bash completion on 4.0 broken?","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2009-11-17T09:54:50Z","receivedAt":"2009-11-17T09:54:50Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Stephen Boyd venit, vidit, dixit 17.11.2009 07:46:\n> When I try\n> \n>     git show --pretty=<TAB><TAB>\n> \n> I get a list of filenames and not the list of pretty formats.\n> \n> I've debugged a little and see that the cur variable in _git_show () is \n> set to '=' when it should be '--pretty='. So it looks like something is \n> causing the command line to be split weirdly. Looking at the bash \n> NEWS[1] for 4.0 I see\n> \n> i.  The programmable completion code now uses the same set of characters as\n>     readline when breaking the command line into a list of words.\n> \n> \n> which causes me to believe this is why it's broken now. I've tried \n> removing '=' from COMP_WORDBREAKS and that shows the list of formats \n> correctly, but then causes the entire '--pretty=' to be replaced with \n> the selected format.\n> \n> Anyone else seeing the same problem or is my system just b0rked?\n> \n> $ bash --version\n> GNU bash, version 4.0.35(2)-release (x86_64-pc-linux-gnu)\n> \n> References:\n> [1] http://tiswww.case.edu/php/chet/bash/NEWS\n\nOuch, just when I decided to use completion rather than a bunch of\naliases it stops working. B0rked here 0ls0 on Fedora 12 (with git.git's\nnext):\n\nGNU bash, Version 4.0.33(1)-release (x86_64-redhat-linux-gnu)\n\nCommand name completion and prompt magic do work.\n\nMichael\n"}]}