diff options
Diffstat (limited to 'lisp/net/tramp.el')
-rw-r--r-- | lisp/net/tramp.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 9aff06031fc..82d878a6fa8 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -159,6 +159,9 @@ For encoding and deocding, commands like the following are executed: This variable can be used to change the \"/bin/sh\" part. See the variable `tramp-encoding-command-switch' for the \"-c\" part. +If the shell must be forced to be interactive, see +`tramp-encoding-command-interactive'. + Note that this variable is not used for remote commands. There are mechanisms in tramp.el which automatically determine the right shell to use for the remote host." @@ -174,6 +177,13 @@ See the variable `tramp-encoding-shell' for more information." :group 'tramp :type 'string) +(defcustom tramp-encoding-command-interactive + (unless (string-match "cmd\\.exe" tramp-encoding-shell) "-i") + "*Use this switch together with `tramp-encoding-shell' for interactive shells. +See the variable `tramp-encoding-shell' for more information." + :group 'tramp + :type '(choice (const nil) string)) + ;;;###tramp-autoload (defvar tramp-methods nil "*Alist of methods for remote files. |