From: Mark Rustad <mrustad@gmail.com>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: Timur Tabi <timur@freescale.com>,
Roland Kuhn <rkuhn@e18.physik.tu-muenchen.de>,
linux-kernel@vger.kernel.org
Subject: Re: Why use /bin/sh in kernel build system?
Date: Tue, 29 Apr 2008 15:27:02 -0500 [thread overview]
Message-ID: <F963C774-E80A-48C6-AC86-681232CEE6CF@gmail.com> (raw)
In-Reply-To: <20080429164501.GA18018@uranus.ravnborg.org>
On Apr 29, 2008, at 11:45 AM, Sam Ravnborg wrote:
>> I read in the latest Linux Journal magazine that someone noticed
>> that even
>> though the kernel scripts say #!/bin/sh, many of them are really
>> bash scripts.
>> This person went through the effort of changing the script to be
>> true 'sh'
>> scripts. Has that code been merged in?
>
> I have no patches pending but I may have lost them.
> As I am 100% ignorant about what is bash and what is not bash
> specialities
> I will more or less be blind when I apply them so I hope they are well
> tested.
So why use /bin/sh ever in the kernel build system? I consciously
began using /bin/bash consistently in scripts years ago because you
just never know what you get when you use /bin/sh. I remember
replacing /bin/sh with /bin/bash in gcc's build system to get it to
work on some system at some point. Life is too short to keep having to
fight silliness like this and I can't see a valid reason why a system
building a Linux kernel, or for that matter gcc, should not have the
bash shell installed on it.
And on some systems, changing /bin/sh to point to /bin/bash can result
in subtle problems with that system's environment, so that is not a
good option. At least by using /bin/bash you know what you get and the
dependency is then known to all.
--
Mark Rustad, MRustad@gmail.com
next prev parent reply other threads:[~2008-04-29 20:27 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-28 1:34 cross-compiling on OS X, make menuconfig fails timur
2008-04-28 1:51 ` Tony Breeds
2008-04-29 15:07 ` Timur Tabi
2008-04-29 16:45 ` Sam Ravnborg
2008-04-29 17:20 ` Al Viro
2008-04-29 18:06 ` Sam Ravnborg
2008-04-30 13:54 ` Timur Tabi
2008-04-30 14:18 ` Sam Ravnborg
2008-05-03 6:55 ` SL Baur
2008-05-03 8:01 ` Sam Ravnborg
2008-05-03 8:40 ` Roland Kuhn
2008-05-03 9:34 ` SL Baur
2008-05-12 13:22 ` Arnd Hannemann
2008-04-28 18:46 ` Roland Kuhn
2008-04-29 14:51 ` Timur Tabi
2008-04-29 16:45 ` Sam Ravnborg
2008-04-29 16:48 ` Al Viro
2008-04-29 20:27 ` Mark Rustad [this message]
2008-04-29 21:41 ` Why use /bin/sh in kernel build system? Alexey Dobriyan
2008-04-29 22:24 ` Willy Tarreau
2008-04-29 22:40 ` Timur Tabi
2008-04-30 9:42 ` SL Baur
2008-04-30 11:48 ` Jan Engelhardt
2008-04-29 22:46 ` cross-compiling on OS X, make menuconfig fails Bernd Petrovitsch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F963C774-E80A-48C6-AC86-681232CEE6CF@gmail.com \
--to=mrustad@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rkuhn@e18.physik.tu-muenchen.de \
--cc=sam@ravnborg.org \
--cc=timur@freescale.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®