git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v3/RFC 1/2] Introduce functions from bash-completion project.

From
Marc Branchaud <marcnarc@xiplink.com>
Date
Nov 1, 2010, 13:35 UTC
Message-ID
<4CCEC20B.1020003@xiplink.com>
In-Reply-To
<1288471350-5392-2-git-send-email-peter@avirtualhome.com>
On 10-10-30 04:42 PM, Peter van der Does wrote:
Show 23 quoted lines
> The completion script does not work as expected under Bash 4.
> Bash: 3
> output:
> $ git log --pretty=<tab><tab>
> email     full      medium    raw
> format:   fuller    oneline   short
> 
> Bash: 4
> output:
> $ git log --pretty=<tab><tab>
> .bash_logout         .local/
> .bash_profile        Music/
> --More--
> 
> With Bash 4 the way word breaking is done in the programmable completion
> code has changed. The documentation at the bash project is not very
> clear what was changed, the only reference found is in the NEWS section:
> 
> i.  The programmable completion code now uses the same set of characters
> as readline when breaking the command line into a list of words.
> 
> The word breaking problem occurs with certain characters, like double
> colon and equal sign.
Nit: "double colon" is "::" -- the name of the character is just "colon".
		M.
Previous: Peter van der DoesNext: Peter van der Does
Message 3 of 4 in “Make git-completion Bash 4 compatible.”
  1. 0/2 Make git-completion Bash 4 compatible.Peter van der Does, Oct 30, 2010
  2. 1/2 Introduce functions from bash-completion project.Peter van der Does, Oct 30, 2010
  3. Marc BranchaudNov 1, 2010
  4. 2/2 Use the new functions to get the current cword.Peter van der Does, Oct 30, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.