public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Subject: [PATCH 2.4] Fix Kernel 2.4 build with bash 4
@ 2009-10-02  9:17 Stefan Seyfried
  2009-10-02  9:25 ` Willy Tarreau
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Seyfried @ 2009-10-02  9:17 UTC (permalink / raw)
  To: linux-kernel; +Cc: Willy Tarreau


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 "#"
-- 
1.6.4.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: Subject: [PATCH 2.4] Fix Kernel 2.4 build with bash 4
  2009-10-02  9:17 Subject: [PATCH 2.4] Fix Kernel 2.4 build with bash 4 Stefan Seyfried
@ 2009-10-02  9:25 ` Willy Tarreau
  2009-10-02  9:31   ` Stefan Seyfried
  0 siblings, 1 reply; 3+ messages in thread
From: Willy Tarreau @ 2009-10-02  9:25 UTC (permalink / raw)
  To: Stefan Seyfried; +Cc: linux-kernel

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Subject: [PATCH 2.4] Fix Kernel 2.4 build with bash 4
  2009-10-02  9:25 ` Willy Tarreau
@ 2009-10-02  9:31   ` Stefan Seyfried
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Seyfried @ 2009-10-02  9:31 UTC (permalink / raw)
  To: Willy Tarreau; +Cc: linux-kernel

On Fri, 2 Oct 2009 11:25:07 +0200
Willy Tarreau <w@1wt.eu> wrote:

> 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. 

Well, people started reporting it when distributions (openSUSE FACTORY
and Fedora 11) switched to bash 4. Maybe the shell's defaults are now
just a bit stricter, or the distros abandoned a PATH setting that was
common before, I have no idea.

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

Thanks! Saves me a local patch ;)

-- 
Stefan Seyfried

"Any ideas, John?"
"Well, surrounding them's out."

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-10-02  9:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-02  9:17 Subject: [PATCH 2.4] Fix Kernel 2.4 build with bash 4 Stefan Seyfried
2009-10-02  9:25 ` Willy Tarreau
2009-10-02  9:31   ` Stefan Seyfried

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox