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

Re: What's cooking in git.git (Sep 2010, #07; Wed, 29)

From
SZEDER Gábor <szeder@ira.uka.de>
Date
Oct 12, 2010, 21:26 UTC
Message-ID
<20101012212658.GF4536@neumann>
In-Reply-To
<20101010212646.GA6092@neumann>
Hi,
On Sun, Oct 10, 2010 at 11:26:46PM +0200, SZEDER Gábor wrote:
Show 10 quoted lines
> On Wed, Sep 29, 2010 at 05:16:10PM -0700, Junio C Hamano wrote:
> > * ml/completion-zsh (2010-09-06) 1 commit
> >   (merged to 'next' on 2010-09-22 at d62d10e)
> >  + completion: make compatible with zsh
> > 
> > Comments from bash users regarding regressions?
> 
> No regressions so far here, but I don't use the "divergence from svn
> upstream" feature (although the two changes in that codepath seem to
> be fairly trivial).
There is one regression, though.

We made changes in the past to get the completion script working when 'set -u' is enabled, see commits 25a31f8 (bash-completion: Support running when set -u is enabled, 2009-01-15) and 6c44b64 (bash-completion: Fix __git_ps1 to work with "set -u", 2010-06-17). This patch causes an unbound variable error with 'set -u' when it checks $ZSH_VERSION, which is, of course, undefined in bash.

Following up on 25a31f8, using ${ZSH_VERSION-} avoids such errors under bash and 'set -u', and I think it should work with zsh, too.

Best, Gábor

Previous: SZEDER Gábor
Message 8 of 8 in “What's cooking in git.git (Sep 2010, #07; Wed, 29)”
  1. Junio C HamanoSep 30, 2010
  2. Elijah NewrenSep 30, 2010
  3. Pascal ObryOct 2, 2010
  4. Joshua JensenOct 3, 2010
  5. Elijah NewrenOct 3, 2010
  6. Junio C HamanoOct 3, 2010
  7. SZEDER GáborOct 10, 2010
  8. SZEDER GáborOct 12, 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.