autoconf
[Top][All Lists]
Advanced

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

Bug in bash-1.14.7 causes testsuite failure


From: Pavel Roskin
Subject: Bug in bash-1.14.7 causes testsuite failure
Date: Fri, 20 Oct 2000 22:20:06 -0400 (EDT)

Hello!

I just found that the testsuite fails on stock RedHat 6.2 with Midnight
Commander (!!!) installed in syntax.m4 when testing AC_FUNC_GETLOADAVG.

It appears that bash-1.14.7 (not sure about 7.0, but RedHat 6.2 uses it as
/bin/sh) prints functions in a different way after it encounters some
shell constructs.

For example, this script:

#! /bin/sh
foo()
{
 bar
}
type foo
(
{
:
}
)
type foo

prints:

foo is a function
foo () 
{ 
    bar
}
foo is a function
foo () 
{ 
bar
}

This means that if a macro uses braces inside parentheses the contents of
expout and env-after is different. AC_ENV_SAVE filters out strings that
don't look like variable assignments, but the infamous "mc" function
contains a variable assignment.

The result is a failure in the testsuite. It doesn't indicate any problem
in autoconf itself. I see no clean workaround except filtering out
functions, which could surpass the abilities of egrep and would introduce
more headache than it would eliminate.

In short - ignore failure reports about AC_FUNC_GETLOADAVG from RedHat
users. If it's you, add "unset -f mc" to ~/.bashrc and forget it.

Regards,
Pavel Roskin




reply via email to

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