# t9902-completion.sh failed

5 messages from 2014-11-13 to 2014-11-13. Participants: Alex Kuleshov, Jeff King.
Thread: https://gitlist.dev/t/37951

## Alex Kuleshov, 2014-11-13 10:59

Subject: t9902-completion.sh failed
Message-ID: <87mw7v9xhl.fsf@gmail.com>
URL: https://gitlist.dev/e/87mw7v9xhl.fsf%40gmail.com

```

Hello all,

i just got git from master (f6f61cbbad0611e03b712cc354f1665b5d7b087e),
built and installed it successfully, now i'm running make test and got
following error:

*** t9902-completion.sh ***
t9902-completion.sh: 118:
/home/shk/dev/git/t/../contrib/completion/git-completion.bash: Syntax
error: "(" unexpected (expecting "fi")
FATAL: Unexpected exit with code 2
make[2]: *** [t9902-completion.sh] Error 1
make[2]: Leaving directory `/home/shk/dev/git/t'
make[1]: *** [test] Error 2
make[1]: Leaving directory `/home/shk/dev/git/t'
make: *** [test] Error 2

$ bash --version
4.3.11(1)-release (x86_64-pc-linux-gnu)

--
Best regards.
0xAX

```

## Jeff King, 2014-11-13 11:24

Subject: Re: t9902-completion.sh failed
Message-ID: <20141113112447.GA4437@peff.net>
URL: https://gitlist.dev/e/20141113112447.GA4437%40peff.net
In-Reply-To: <87mw7v9xhl.fsf@gmail.com>

```
On Thu, Nov 13, 2014 at 04:59:12PM +0600, Alex Kuleshov wrote:

> i just got git from master (f6f61cbbad0611e03b712cc354f1665b5d7b087e),
> built and installed it successfully, now i'm running make test and got
> following error:
> 
> *** t9902-completion.sh ***
> t9902-completion.sh: 118:
> /home/shk/dev/git/t/../contrib/completion/git-completion.bash: Syntax
> error: "(" unexpected (expecting "fi")
> FATAL: Unexpected exit with code 2
> make[2]: *** [t9902-completion.sh] Error 1
> make[2]: Leaving directory `/home/shk/dev/git/t'
> make[1]: *** [test] Error 2
> make[1]: Leaving directory `/home/shk/dev/git/t'
> make: *** [test] Error 2
> 
> $ bash --version
> 4.3.11(1)-release (x86_64-pc-linux-gnu)

Weird. I can't reproduce here, using the version of bash from Debian
unstable (4.3.30(1)), nor compiling 4.3.11 from sources. What platform
are you on (i.e., might it be bash + some other patches installed by the
distro)?

-Peff

```

## Alex Kuleshov, 2014-11-13 11:34

Subject: Re: t9902-completion.sh failed
Message-ID: <878ujfxrgo.fsf@gmail.com>
URL: https://gitlist.dev/e/878ujfxrgo.fsf%40gmail.com
In-Reply-To: <20141113112447.GA4437@peff.net>

```

Hello Jeff,

I'm using ubuntu 14.04 x86_64 and bash GNU bash, version
4.3.11(1)-release (x86_64-pc-linux-gnu).

I didn't applied any patches to bash for all time since i installed
system. so it reall weird


Jeff King <peff@peff.net> @ 2014-11-13 17:24 ALMT:

> On Thu, Nov 13, 2014 at 04:59:12PM +0600, Alex Kuleshov wrote:
>
>> i just got git from master (f6f61cbbad0611e03b712cc354f1665b5d7b087e),
>> built and installed it successfully, now i'm running make test and got
>> following error:
>>
>> *** t9902-completion.sh ***
>> t9902-completion.sh: 118:
>> /home/shk/dev/git/t/../contrib/completion/git-completion.bash: Syntax
>> error: "(" unexpected (expecting "fi")
>> FATAL: Unexpected exit with code 2
>> make[2]: *** [t9902-completion.sh] Error 1
>> make[2]: Leaving directory `/home/shk/dev/git/t'
>> make[1]: *** [test] Error 2
>> make[1]: Leaving directory `/home/shk/dev/git/t'
>> make: *** [test] Error 2
>>
>> $ bash --version
>> 4.3.11(1)-release (x86_64-pc-linux-gnu)
>
> Weird. I can't reproduce here, using the version of bash from Debian
> unstable (4.3.30(1)), nor compiling 4.3.11 from sources. What platform
> are you on (i.e., might it be bash + some other patches installed by the
> distro)?
>
> -Peff

--
Best regards.
0xAX

```

## Jeff King, 2014-11-13 13:55

Subject: Re: t9902-completion.sh failed
Message-ID: <20141113135529.GA31509@peff.net>
URL: https://gitlist.dev/e/20141113135529.GA31509%40peff.net
In-Reply-To: <878ujfxrgo.fsf@gmail.com>

```
On Thu, Nov 13, 2014 at 05:34:50PM +0600, Alex Kuleshov wrote:

> I'm using ubuntu 14.04 x86_64 and bash GNU bash, version
> 4.3.11(1)-release (x86_64-pc-linux-gnu).
> 
> I didn't applied any patches to bash for all time since i installed
> system. so it reall weird

I tried on a fresh install of Ubuntu 14.04.1, with the same version of
bash, and I still can't reproduce the problem. I'm not sure what else to
check.

-Peff

```

## Alex Kuleshov, 2014-11-13 18:35

Subject: Re: t9902-completion.sh failed
Message-ID: <8761ej54oa.fsf@gmail.com>
URL: https://gitlist.dev/e/8761ej54oa.fsf%40gmail.com
In-Reply-To: <20141113112447.GA4437@peff.net>

```

ah, i catched the problem, I launched make test with sudo and now all
tests passed successfully.

Jeff King <peff@peff.net> @ 2014-11-13 17:24 ALMT:

> On Thu, Nov 13, 2014 at 04:59:12PM +0600, Alex Kuleshov wrote:
>
>> i just got git from master (f6f61cbbad0611e03b712cc354f1665b5d7b087e),
>> built and installed it successfully, now i'm running make test and got
>> following error:
>>
>> *** t9902-completion.sh ***
>> t9902-completion.sh: 118:
>> /home/shk/dev/git/t/../contrib/completion/git-completion.bash: Syntax
>> error: "(" unexpected (expecting "fi")
>> FATAL: Unexpected exit with code 2
>> make[2]: *** [t9902-completion.sh] Error 1
>> make[2]: Leaving directory `/home/shk/dev/git/t'
>> make[1]: *** [test] Error 2
>> make[1]: Leaving directory `/home/shk/dev/git/t'
>> make: *** [test] Error 2
>>
>> $ bash --version
>> 4.3.11(1)-release (x86_64-pc-linux-gnu)
>
> Weird. I can't reproduce here, using the version of bash from Debian
> unstable (4.3.30(1)), nor compiling 4.3.11 from sources. What platform
> are you on (i.e., might it be bash + some other patches installed by the
> distro)?
>
> -Peff

--
Best regards.
0xAX

```
