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

Re: [PATCH] completion: add new zsh completion

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 30, 2012, 18:52 UTC
Message-ID
<7vy5spauqh.fsf@alter.siamese.dyndns.org>
In-Reply-To
<4F267AC9.1080407@viscovery.net>
Johannes Sixt <j.sixt@viscovery.net> writes:
Show 9 quoted lines
>> Something along the lines of
>> 
>> ZSH_VERSION='' . $(dirname ${funcsourcetrace[1]%:*})/git-completion.bash
>> 
>> should do it (mostly untested, and written by a non-ZSH expert).
>
> Moreover, if zsh is POSIX compliant, the value of ZSH_VERSION will be an
> empty string after this statement. That may or (more likely) may not be
> what you want.

As this split-file is about only zsh completion, it can be as non-POSIX as it wants, and it appears that zsh is not striving to be POSIX compliant, judging from Felipe's other messages.

Whatever works for zsh is just fine.
Previous: Felipe Contreras
Message 7 of 7 in “completion: add new zsh completion”
  1. completion: add new zsh completionFelipe Contreras, Jan 30, 2012
  2. Matthieu MoyJan 30, 2012
  3. Felipe ContrerasJan 30, 2012
  4. Felipe ContrerasJan 30, 2012
  5. Johannes SixtJan 30, 2012
  6. Felipe ContrerasJan 30, 2012
  7. Junio C HamanoJan 30, 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.