I just upgraded to Ubuntu 18.10 from Ubuntu 17.10.
I have my box configured to use bash
as the default shell rather than the default dash
. I've made this change with sudo update-alternatives --config sh
which reports:
Selection Path Priority Status
------------------------------------------------------------
0 /bin/dash 200 auto mode
* 1 /bin/bash 100 manual mode
2 /bin/dash 200 manual mode
However, /bin/sh
still points to dash
rather than pointing to bash
.
Actually, on previous versions of Ubuntu, I believe that used to point /bin/sh -> /etc/alternatives/sh
.
It looks like the latest Ubuntu no longer allows the alternatives
mechanism for sh
or at least broke the alternatives during the upgrade. I see from How Can I Make /bin/sh point to /bin/bash? that it is now recommended to reconfigure dash instead.
Why doesn't alternatives
work anymore? Where is this change documented? I've been using alternatives with sh for at least three years in Ubuntu and I've never had it broken during an upgrade before. There are many guides that suggest that such as: https://jwaghetti.blogspot.com/2015/09/changing-dash-to-bash.html