threads / discuss / 37951

t9902-completion.sh failed

Subject: t9902-completion.sh failed

## tl;dr

5 messages between Nov 13, 2014 and Nov 13, 2014.

replies: 4people: 2as markdown or json

Alex Kuleshov· Nov 13, 2014, 10:59 UTC · lore
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· Nov 13, 2014, 11:24 UTC · re: Alex Kuleshov · lore

Re: t9902-completion.sh failed

On Thu, Nov 13, 2014 at 04:59:12PM +0600, Alex Kuleshov wrote:
Show 17 quoted lines
> 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· Nov 13, 2014, 11:34 UTC · re: Jeff King · lore

Re: t9902-completion.sh failed

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:
Show 26 quoted lines
> 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· Nov 13, 2014, 13:55 UTC · re: Alex Kuleshov · lore

Re: t9902-completion.sh failed

On Thu, Nov 13, 2014 at 05:34:50PM +0600, Alex Kuleshov wrote:
Show 5 quoted lines
> 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· Nov 13, 2014, 18:35 UTC · re: Jeff King · lore

Re: t9902-completion.sh failed

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:
Show 26 quoted lines
> 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

← back to recent threads