From: Stephen Boyd <bebarino@gmail.com>
To: git@vger.kernel.org
Cc: "Shawn O. Pearce" <spearce@spearce.org>
Subject: bash completion on 4.0 broken?
Date: Mon, 16 Nov 2009 22:46:31 -0800 [thread overview]
Message-ID: <4B0246C7.6020401@gmail.com> (raw)
When I try
git show --pretty=<TAB><TAB>
I get a list of filenames and not the list of pretty formats.
I've debugged a little and see that the cur variable in _git_show () is
set to '=' when it should be '--pretty='. So it looks like something is
causing the command line to be split weirdly. Looking at the bash
NEWS[1] for 4.0 I see
i. The programmable completion code now uses the same set of characters as
readline when breaking the command line into a list of words.
which causes me to believe this is why it's broken now. I've tried
removing '=' from COMP_WORDBREAKS and that shows the list of formats
correctly, but then causes the entire '--pretty=' to be replaced with
the selected format.
Anyone else seeing the same problem or is my system just b0rked?
$ bash --version
GNU bash, version 4.0.35(2)-release (x86_64-pc-linux-gnu)
References:
[1] http://tiswww.case.edu/php/chet/bash/NEWS
next reply other threads:[~2009-11-17 6:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-17 6:46 Stephen Boyd [this message]
2009-11-17 9:54 ` bash completion on 4.0 broken? Michael J Gruber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B0246C7.6020401@gmail.com \
--to=bebarino@gmail.com \
--cc=git@vger.kernel.org \
--cc=spearce@spearce.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.