Ihor Radchenko <[email protected]> writes: Hi Ihor,
> Maybe you recall > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=89f10a11f > We are struggling to find the rationale. Honey, it's almost 13 years ago ... The rationale is the comment I would say. What doesn't work with it? > My understanding (Morgan, please correct if you have other issues > understanding TRAMP) is that the problem is in the following: > > (let ((default-directory "/ssh:lumi:~")) > (with-connection-local-variables shell-file-name)) > > The above always returns /bin/sh, but /bin/sh is not always a valid path > to shell on remote system. In particular, it does not exist on Guix. The connection-local variable shell-file-name is set for Tramp in tramp-integration.sh. See the constant tramp-connection-local-default-shell-variables and its use. If you want to have another value for a give host, you can do it as described in (info "(tramp) Remote processes") . It excplains it for explicit-shell-file-name, but the same can be done for shell-file-name. Best regards, Michael.
