If I locally call async-shell-command it takes the shell from shell-file-name (/bin/bash).
However if I use su or ssh via tramp to invoke a shell command remotely it always runs as /bin/sh. The default shell on the remote box is bash.
This is not the case if run an interactive M-x shell where the correct bash shell is always used, both remotely and locally.
My config looks like:
(setq explicit-shell-file-name "/bin/bash") (setq shell-file-name explicit-shell-file-name)
I'm using emacs 25.3
Any ideas how to make bash the default shell when running shell commands via tramp?