threads / discuss / 25136

error running git-completion.bash on snow leo

Subject: error running git-completion.bash on snow leo

## tl;dr

3 messages between Sep 18, 2010 and Sep 18, 2010.

replies: 2people: 2as markdown or json

Wes James· Sep 18, 2010, 02:29 UTC · lore
When I
source git-completion.bash
I get:
-bash: git-completion.bash: line 127: syntax error near unexpected token `done'
-bash: git-completion.bash: line 127: `	done < <(git config -z
--get-regexp '^(svn-remote\..*\.url|bash\.showupstream)$' 2>/dev/null
| tr '\0\n' '\n ')'
anyone know why?
latest os x snow leopard.
-wes
Wes James· Sep 18, 2010, 02:55 UTC · re: Wes James · lore

Re: error running git-completion.bash on snow leo

On Fri, Sep 17, 2010 at 8:29 PM, Wes James <comptekki@gmail.com> wrote:
Show 11 quoted lines
> When I
>
> source git-completion.bash
>
> I get:
>
> -bash: git-completion.bash: line 127: syntax error near unexpected token `done'
> -bash: git-completion.bash: line 127: ` done < <(git config -z
> --get-regexp '^(svn-remote\..*\.url|bash\.showupstream)$' 2>/dev/null
> | tr '\0\n' '\n ')'
>

never mind. I renamed my .bashrc to .bashrc.orig and opened a new terminal window and sourced git-completion.bash and it completed with no error. I must have had something conflicting with the git-completion.bash file.

-wes
Ævar Arnfjörð Bjarmason· Sep 18, 2010, 07:28 UTC · re: Wes James · lore

Re: error running git-completion.bash on snow leo

On Sat, Sep 18, 2010 at 02:29, Wes James <comptekki@gmail.com> wrote:
Show 6 quoted lines
> -bash: git-completion.bash: line 127: syntax error near unexpected token `done'
> -bash: git-completion.bash: line 127: ` done < <(git config -z
> --get-regexp '^(svn-remote\..*\.url|bash\.showupstream)$' 2>/dev/null
> | tr '\0\n' '\n ')'
>
> anyone know why?

See http://permalink.gmane.org/gmane.comp.version-control.git/151723 and https://bugs.archlinux.org/task/20288

← back to recent threads