Re: Subject: [PATCH 2.4] Fix Kernel 2.4 build with bash 4

Willy Tarreau
2009-10-02T09:25:08Z

Hi Stefan,

On Fri, Oct 02, 2009 at 11:17:11AM +0200, Stefan Seyfried wrote:
>
> Signed-off-by: Stefan <stefan.seyfried@googlemail.com>
> ---
> scripts/Configure | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/scripts/Configure b/scripts/Configure
> index 1a3af43..7a73423 100644
> --- a/scripts/Configure
> +++ b/scripts/Configure
> @@ -546,9 +546,9 @@ if [ -f $DEFAULTS ]; then
> echo "#"
> echo "# Using defaults found in" $DEFAULTS
> echo "#"
> - . $DEFAULTS
> + . ./$DEFAULTS
> sed -e 's/# \(CONFIG_[^ ]*\) is not.*/\1=n/' <$DEFAULTS >.config-is-not.$$
> - . .config-is-not.$$
> + . ./.config-is-not.$$
> rm .config-is-not.$$
> else
> echo "#"

This is amazing it has ever worked at all ! None of my scripts which use
". $file" without "./" work even in bash 3. Probably this depends on some
PATH variables and maybe your environment has changed since you upgarded
to bash 4.

Thanks for the fix, I'll merge it.
Willy