Simon Josefsson wrote:

> Jim Meyering <j...@meyering.net> writes:
>
>> Right.  The *.exe names are sorted, and test-acos is the
>> first one encountered.
>
> Ah.
>
>> Is there a more functional shell on that system?
>> If so, is it already detected and thus mentioned
>> somewhere in config.status?
>
> checking for a shell that conforms to POSIX... /bin/sh
>
> On that system, /bin/sh is bash 3.2.49 from latest cygwin 1.7.x.

To accommodate "-" in function names would amount
to using a POSIX extension, so we'd have to use bash.

Can you confirm that those tests succeed when you replace
#!/bin/sh with #!/bin/bash in the test scripts that use init.sh?

If so, the proposed re-exec approach should end up solving the problem.
Now we have to determine which replacement shell to use.
One way would be to write something similar to posix-shell.m4
that tests for the added capability.  Or perhaps just perform
the test "live" every time we run init.sh.


Reply via email to