bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ./init.sh: line 139: `test-acos': not a valid identifier


From: Jim Meyering
Subject: Re: ./init.sh: line 139: `test-acos': not a valid identifier
Date: Thu, 18 Feb 2010 09:34:09 +0100

Simon Josefsson wrote:
> Below is a strange error that can be seen on:
>
> http://autobuild.josefsson.org/gnulib/log-201002171652277193000.txt
>
> There are no make -j switches here, which I suspected could be involved.
>
> ./init.sh: line 139: `test-acos': not a valid identifier
> FAIL: test-pread.sh
> ...
> ./init.sh: line 139: `test-acos': not a valid identifier
> FAIL: test-xalloc-die.sh
> ...
> ./init.sh: line 139: `test-acos': not a valid identifier
> FAIL: test-xstrtoll.sh
>
> It is just three of the self-tests that fails in this way.
>
> The relevant init.sh line is:
>
>   if test -n "$base_names_"; then
>     for base_ in $base_names_; do
>       # Create a function named $base whose sole job is to invoke
>       # $base_$EXEEXT, assuming its containing dir is already in PATH.
> ->    eval "$base_() { $base_$EXEEXT"' "$@"; }'
>     done
>   fi
>
> Could the reason for 'test-acos' showing here be that it is the first
> (alphabetically) test?

Thanks for the report.
That failure is because we cannot create a function name containing a "-"
using that shell.  This is another portability hurdle that we should
be able to overcome with what Eric proposed: have init.sh reinvoke
a better shell.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]