Hi,
On Thu, 8 Feb 2007, Linus Torvalds wrote:
> Historically, people used to do:
> - /bin/sh was the "standard shell" (bash)
> - /bin/[t]csh is what clueless weenies use for interactive work.
>
> (Yeah, I'm not a [t]csh fan ;)
>
> And you did break that.
>
> It's quite possible that all modern distributions will install /bin/bash
> as a link to /bin/sh, but I don't see the point of that particular change.
> We aren't even all that bash-centric any more. If you have a
> POSIX-compatible shell in /bin/sh, it really _should_ work. It just can't
> be something really broken.
I don't quite understand, the Makefile doesn't care anymore about /bin/sh
with this patch, the Makefile checks only for $BASH and /bin/bash
(equivalent to adding "#! /bin/bash" to scripts) and if the latter fails
it's possible some of our scripts will fail. We could make sure that all
our scripts are POSIX clean, but is it really worth the effort? It would
make casual kbuild hacking only even more difficult, as one has to check
it works with the various shells.
> > - proper quoting
> > - proper indentation
>
> One thing I'm wondering about is whether we could have a "does this warn"
> test. I guess you can do it with -Werror, but it might be nice to have
> some tests for "does the -Wxyzzy flag warn also for proper code"
Adding something like try-compile should be possible, but we should be
careful with this, the more checks we add the more work is done at every
make invocation.
bye, Roman
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]