Dash as default shell

Pierre-Yves Chibon pingou at pingoured.fr
Thu Oct 2 13:37:55 UTC 2014


On Thu, Oct 02, 2014 at 08:05:09AM -0500, Chris Adams wrote:
> Once upon a time, Lennart Poettering <mzerqung at 0pointer.de> said:
> > If you change /bin/sh to dash, then you'll have to map two shell
> > binaries into memory (since the login shell is going to stay on bash),
> > hence the resource usage grows.
> 
> systemd (as PID 1, not counting additional required processes) takes
> over 10 times as much resident memory as dash.  Do you really want to go
> down that path?
> 
> > You increase the number of packages
> > and minimal footprint of our OS images since we need to install one
> > more package.
> 
> A true minimal-footprint install would not require bash, so this would
> reduce the size (dash installed size: 155K, bash installed size: 3.6M).
> 
> > You create a *lot* of porting work for all those
> > scripts. You *break* all scripts that currently reference /bin/sh in
> > the shebang-line but use bashisms.
> 
> Those scripts are already broken, and mostly already fixed because of
> Debian/Ubuntu (and *BSD, etc.).  The remaining scripts are largely going
> to be Fedora-specific, and that's not nearly as big of pile of code as
> you imply.
> 
> It is also funny to hear the systemd author talk about not breaking
> things and creating lots of work.

Could we please remain on the technical level and avoid personal attacks?

Thanks,
Pierre


More information about the devel mailing list