[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Switching the default /bin/sh to dash

Petter Reinholdtsen wrote:
> [Giacomo A. Catenazzi]
>> Hmm, so a switch to dash it is not because of POSIX, but because
>> of "better code" and lighter shell for our scripts?
>> Which is also a good reason for the change.
> Yes, it is a good change.  I would love to switch every installation
> to dash as /bin/sh, but believe the path of least surprises to the
> sysadmin is to only change new installations and not existing systems.

Right, though how would you implement that? It doesn't look trivial at
all to me and will possibly be an extra source of errors.

It should also only affect external scripts that are bash specific
AFAICS and they would be easily 'fixed' by changing bin/sh to bin/bash
in the shebang (can even happen unconditionally).



Reply to: