git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* bash completion broken on ubuntu 10.10?
@ 2010-10-20 23:04 SZEDER Gábor
  2010-10-20 23:33 ` Brian Gernhardt
  2010-10-21  2:50 ` Peter van der Does
  0 siblings, 2 replies; 5+ messages in thread
From: SZEDER Gábor @ 2010-10-20 23:04 UTC (permalink / raw)
  To: git

Hi,

Git's bash completion script offers possible arguments to some
options, e.g. it lists pretty formats after 'git log --pretty=<TAB>',
merge tools after 'git mergetool --tool=<TAB>', refs after 'git commit
--reuse-message=<TAB>', etc.

On a three day old ubuntu 10.10 install these don't work anymore; the
completion script offers the list of files in all those cases.

After a bit of investigation I found that when I press TAB after 'git
log --pretty=', then ${COMP_WORDS[COMP_CWORD-1]} contains '--pretty'
and ${COMP_WORDS[COMP_CWORD]} contains "=".  Weird.

Then I remembered that we had some COMP_WORDBREAKS issues in the past
(db8a9ff, bash completion: Resolve git show ref:path<tab> losing ref:
portion, 2008-07-15)).  So I looked at my $COMP_WORDBREAKS, but didn't
see anything suspicious (it contains "'><=;|&(: ).  Removing the '='
makes the listing after 'git log --pretty=' work, but breaks many
other things badly.

I don't have any ideas what could possibly be wrong here (but it's too
late here for any bright ideas anyway...).  Could someone confirm or
deny this behaviour on ubuntu 10.10?


Thanks,
Gábor

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-10-21 10:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-20 23:04 bash completion broken on ubuntu 10.10? SZEDER Gábor
2010-10-20 23:33 ` Brian Gernhardt
2010-10-21  2:50 ` Peter van der Does
2010-10-21  4:44   ` Kevin Ballard
2010-10-21 10:35   ` Mathias Lafeldt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).