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

Re: [PATCH] completion: zsh: improve bash script loading

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
May 29, 2013, 06:30 UTC
Message-ID
<CAMP44s1UwYxS_sZSKTyEj5rhmrJ4gFkPc9z+eCL6WAaHXkY8eQ@mail.gmail.com>
In-Reply-To
<51A59D8E.1040502@viscovery.net>
On Wed, May 29, 2013 at 1:17 AM, Johannes Sixt <j.sixt@viscovery.net> wrote:
Show 15 quoted lines
> Am 5/29/2013 5:24, schrieb Felipe Contreras:
>> +if [ -z "$script" ]; then
>> +     local -a locations
>> +     locations=(
>> +             '/etc/bash_completion.d/git' # fedora, old debian
>> +             '/usr/share/bash-completion/completions/git' # arch, ubuntu, new debian
>> +             '/usr/share/bash-completion/git' # gentoo
>> +             $(dirname ${funcsourcetrace[1]%:*})/git-completion.bash
>> +             )
>
> Won't you need
>
>         local e
>
> here, or does it not matter?
You are right, otherwise it would be in the user's shell.
-- 
Felipe Contreras
Previous: Johannes SixtNext: Junio C Hamano
Message 3 of 6 in “completion: zsh: improve bash script loading”
  1. completion: zsh: improve bash script loadingFelipe Contreras, May 29, 2013
  2. Johannes SixtMay 29, 2013
  3. Felipe ContrerasMay 29, 2013
  4. Junio C HamanoMay 29, 2013
  5. Felipe ContrerasMay 29, 2013
  6. Junio C HamanoMay 29, 2013

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.