3 ms·
Ubuntu uses dash as its default shell to speed things up. Actually it is (sadly) the major reason, but not the only one: The Debian policy manual has long man
by ez77 16y ago
Ubuntu uses dash as its default shell to speed things up.
Actually it is (sadly) the major reason, but not the only one:
The Debian policy manual has long mandated that "shell scripts specifying '/bin/sh' as interpreter must only use POSIX features"; in fact, this requirement has been in place since well before the inception of the Ubuntu project. Furthermore, any shell scripts that expected to be portable to other Unix systems, such as the BSDs or Solaris, already honoured this requirement. Thus, we felt that the compatibility impact of this change would be minimal. [1]
Personally I think that assuming nothing but POSIX is a more compelling reason than efficiency.
[1] https://wiki.ubuntu.com/DashAsBinSh https://wiki.ubuntu.com/DashAsBinSh