Gilles Pion <[email protected]> writes:

>> And I don't see a simple way to avoid this problem. "/bin/sh -l ..." is
>> called only, when you have `tramp-own-remote-path' in
>> `tramp-remote-path'. Tramp must perform a shell login, in order to
>> determine your private $PATH settings. I can only change the code in
>> order to raise an error when "/bin/sh -l ..." fires a non-zero return
>> code.
>
> I think it could be a acceptable workaround.

Well, finally I made it configurable. I've committed a patch to the
Tramp repository, which allows you to overwrite parameters in
tramp-methods. Something like this:

(add-to-list 'tramp-connection-properties
             (list (regexp-quote "/ssh:[email protected]:")
                   "remote-shell" "/bin/ksh"))
(add-to-list 'tramp-connection-properties
             (list (regexp-quote "/ssh:[email protected]:")
                   "remote-shell-login" '("-")))

This might be useful for other parameters in tramp-methods as well, an
issue raised often on this list.

Best regards, Michael.

_______________________________________________
Tramp-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to