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

git-completion.bash emitting error messages

From
ДПДилян Палаузов <dilyan.palauzov@aegee.org>
Date
Mar 4, 2016, 21:21 UTC
Message-ID
<56D9FC53.9060706@aegee.org>
Hello,

I use ./bash 4.3.42 with bundled libreadline and git/contrib/completion/git-completion.bash , as modified by commit 8716bdca268 from 22 Feb 2016.

I cd to git.git (non-bare, with working tree) and type

git b62c.. ori<TAB> to force TAB-completion. And then on the shell comes the output (on the same line) "error: key does not contain variable name: alias.b62c.." Pressing again TAB repeats the message. Even if TAB is pressed once, the printed text cannot be deleted with the backspace, so the only way to do something useful is to press ENTER.

While the command is indeed nonsense, in my understanding tab-completion shall do nothing, if completion is not possible. In particular it shall not print error messages and even the user types stupid things, he shall not be required to force ENTER to come back to a clear state, where a command can by types.

Greetings
   Dilian
Message 1 of 1 in “git-completion.bash emitting error messages”
  1. Дилян ПалаузовMar 4, 2016

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.