Dash as default shell

Stephen John Smoogen smooge at gmail.com
Mon Oct 6 14:59:09 UTC 2014


On 6 October 2014 00:06, Paolo Bonzini <pbonzini at redhat.com> wrote:

> Il 02/10/2014 11:04, Zdenek Kabelac ha scritto:
> > It used to give significant boost for automake & libtool based software
> > - however at some point libtool started to use bashisms and so you
> > cannot just replace  /bin/sh -> dash - as build will fail.
>
> This is wrong.
>
> libtool detects whether you can use bashisms, and falls back to POSIX
> shell constructs if it cannot use them.  The non-POSIX constructs are
> usually faster because they do not need to fork() the shell.  Autoconf
> does the same.  dash rejects some of these constructs, and accept others.
>


Actually this might be the most important item in the whole conversation
about moving to dash. If dash excepts some bashisms and not others... it
isn't a 'default posix' shell and we really need someone to audit it and
not expect that just because XYZ project uses it.. that they audited it.
[And no this isn't a I want to keep bash as root shell argument, I don't
really care what the default exec is as much as it is audited and secure.
While it is clear that bash hasn't been that iwth only one maintainer.. I
have no idea about dash and I am not sure who does.]


-- 
Stephen J Smoogen.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20141006/f586cddb/attachment.html>


More information about the devel mailing list