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

Re: [PATCH v2] Fix git-completion.bash for use in zsh

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Mar 25, 2012, 17:47 UTC
Message-ID
<CAMP44s3_aZ39n6L15ZUNyw8B_6ab+=_Hm8-KPz6WM26GweJCmg@mail.gmail.com>
In-Reply-To
<7vaa393mvc.fsf@alter.siamese.dyndns.org>
On Wed, Mar 21, 2012 at 7:05 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 15 quoted lines
> Alex Merry <dev@randomguy3.me.uk> writes:
>
>> zsh treats
>>   local some_var=()
>> as a function declaration, rather than an array declaration (although
>> its documentation does not suggest that this should be the case).
>>
>> With zsh 4.3.15 on Fedora Core 15, this causes
>>   __git_ps1 " (%s)"
>> to produce the message
>>   local:2: command not found: svn_url_pattern
>> when GIT_PS1_SHOWUPSTREAM="auto", due to the line
>>   local svn_remote=() svn_url_pattern count n
>
> Thanks, will queue.  Felipe, comments?
Looks good to me. Also, I tested this, and it worked.
-- 
Felipe Contreras
Previous: Junio C HamanoNext: Felipe Contreras
Message 3 of 4 in “Fix git-completion.bash for use in zsh”
  1. Fix git-completion.bash for use in zshAlex Merry, Mar 21, 2012
  2. Junio C HamanoMar 21, 2012
  3. Felipe ContrerasMar 25, 2012
  4. Felipe ContrerasApr 7, 2012

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.