On 2026-10-24 15:41, Stéphane CARPENTIER wrote:
> Le 24-10-2026, Janis Papanagnou <jani…@hotmail.com> a écrit :
>> On 2026-10-24 05:59, c186282 wrote:
>>> Note however that MOST distros default to BASH now -
>> >> Yes, Linux often has Bash as its default.
> > I just keep this because I guess, if I don't consider it to be wrong > because I know what it exactly means, I believe it's often a source of > confusion. Because it can mean two different things and three different > things must be considered when speaking about the default shell. > > Mostly, BASH is the default for the three things, one of them can be > changed effortlessly, one of them would be very difficult to change in > the long term and the last one depend on the interaction with others. > > The first thing is the way by which you interact directly with your > SHELL, a kind of REPL. It's just a field in the /etc/passwd file, it's > easy to change and if you prefer any SHELL, just install it, change the > field and it rocks. It's just a matter of taste, nothing can go wrong by > changing it. > > The second thing is the shell used by the distro to run its script. This > one is clearly often BASH, changing it can be challenging. And things > can go wrong in a lot of ways, from the shebang poorly defined to some > specificities expected by the distro. But really, I'm not sure it's a > real issue because I'm not sure there are reason to change it. The > fact that systemd doesn't need any shell script is a reason why it's nit > that important. One can want to change the default provided by the > distro, but changing the script shell provided by the distro mean each > time an update is done, the changes will be removed. And they will need > special care. When there are ways to change the default without changing > the scripts provided by the distro.
I don't see any reason to change the shell used by system scripts. If the shebang is /bin/sh, and bad things happen if you uninstall bash and they are forced to use ksh, well, it is their fault and it is a bug. They should have specified the proper shebang. Just report it.
-- Cheers, Carlos. ES🇪🇸, EU🇪🇺;