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

Re: git-sh-prompt: bash: GIT_PS1_COMPRESSSPARSESTATE: unbound variable

From
Christoph Anton Mitterer <calestyo@scientia.net>
Date
May 13, 2021, 13:08 UTC
Message-ID
<123ef9e4f5dfe64e62dbdb207633df06cd94e818.camel@scientia.net>
In-Reply-To
<xmqq4kf7cmaj.fsf@gitster.g>
On Thu, 2021-05-13 at 13:03 +0900, Junio C Hamano wrote:
> Would
>     $ set +u
> fix it, I have to wonder?

Damn, I'm so blind ^^ Had recently set -u to try out whether unset variables are used anywhere. Yes it fixes it.

Thanks anyway for going to fix it :-)

Cheers, Chris.

Previous: Elijah Newren
Message 9 of 9 in “git-sh-prompt: bash: GIT_PS1_COMPRESSSPARSESTATE: unbound variable”
  1. Christoph Anton MittererMay 13, 2021
  2. Junio C HamanoMay 13, 2021
  3. Junio C HamanoMay 13, 2021
  4. Elijah NewrenMay 13, 2021
  5. Junio C HamanoMay 13, 2021
  6. Christoph Anton MittererMay 19, 2021
  7. Junio C HamanoMay 19, 2021
  8. Elijah NewrenMay 20, 2021
  9. Christoph Anton MittererMay 13, 2021

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.