On 24 Oct 2026 13:41:20 GMT, Stéphane CARPENTIER wrote:
> 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.
Debian (and I guess its derivatives as well) long ago moved away from the assumption that “/bin/sh” meant the same thing as “/bin/bash”. They introduced a new, very vanilla, POSIX-compliant shell called dash(1) <https://manpages.debian.org/dash(1)>, which is the shell that is invoked when your script says “/bin/sh”. So if you want bash, you have to explicitly ask for bash.