Shuguang Sun writes: > Hi, > The recent change to Tramp for shell/explict shell has break the remote shell again. For example: > - Tramp to a host > - in a remote diretory, M-x shell > it raise the error message: env path/to/cmdproxy.exe can't be found > which looks tramp shell invoke the local shell, instead the remote shell > > I have the settings: > ``` > (connection-local-set-profile-variables > 'remote-bash > '((explicit-shell-file-name . "/bin/bash") > (explicit-bash-args . ("-i")) > )) > > (connection-local-set-profiles > '(:application tramp :protocol "plink" :user "user" :machine "host.com") > 'remote-bash) > ``` > In the previous version of tramp (about Feb), it will invoke the explicit-shell-file-name, instead of local cmdproxy. If `explicit-shell-file-name' is given, it must have precedence. What about the following patch to master: