diff options
| author | Michael Albinus | 2016-04-03 17:54:25 +0200 |
|---|---|---|
| committer | Michael Albinus | 2016-04-03 17:54:25 +0200 |
| commit | 1b33cd8e7e5c747afde29e10b5fe192c5a37b67a (patch) | |
| tree | cdf36db2ae154aeb97f3e9905dfaf524464ff9ec /lisp | |
| parent | 7575ba254c884c89a3ed9b1b2c2bd73c079d98ee (diff) | |
| download | emacs-1b33cd8e7e5c747afde29e10b5fe192c5a37b67a.tar.gz emacs-1b33cd8e7e5c747afde29e10b5fe192c5a37b67a.zip | |
Fix Bug#23186, again
* lisp/net/tramp.el (tramp-encoding-shell)
(tramp-encoding-command-switch)
(tramp-encoding-command-interactive): Check for
`w32-shell-name'. (Bug#23186)
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/net/tramp.el | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index fc194fa1ecd..4edca5a5998 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -120,8 +120,8 @@ This setting has precedence over `auto-save-file-name-transforms'." | |||
| 120 | (directory :tag "Auto save directory name"))) | 120 | (directory :tag "Auto save directory name"))) |
| 121 | 121 | ||
| 122 | (defcustom tramp-encoding-shell | 122 | (defcustom tramp-encoding-shell |
| 123 | (if (memq system-type '(windows-nt)) | 123 | (if (boundp 'w32-shell-name) |
| 124 | (getenv "COMSPEC") | 124 | (symbol-value 'w32-shell-name) |
| 125 | "/bin/sh") | 125 | "/bin/sh") |
| 126 | "Use this program for encoding and decoding commands on the local host. | 126 | "Use this program for encoding and decoding commands on the local host. |
| 127 | This shell is used to execute the encoding and decoding command on the | 127 | This shell is used to execute the encoding and decoding command on the |
| @@ -145,17 +145,14 @@ use for the remote host." | |||
| 145 | :group 'tramp | 145 | :group 'tramp |
| 146 | :type '(file :must-match t)) | 146 | :type '(file :must-match t)) |
| 147 | 147 | ||
| 148 | (defcustom tramp-encoding-command-switch | 148 | (defcustom tramp-encoding-command-switch (if (boundp 'w32-shell-name) "/c" "-c") |
| 149 | (if (string-match "cmd\\.exe" (or tramp-encoding-shell "")) | ||
| 150 | "/c" | ||
| 151 | "-c") | ||
| 152 | "Use this switch together with `tramp-encoding-shell' for local commands. | 149 | "Use this switch together with `tramp-encoding-shell' for local commands. |
| 153 | See the variable `tramp-encoding-shell' for more information." | 150 | See the variable `tramp-encoding-shell' for more information." |
| 154 | :group 'tramp | 151 | :group 'tramp |
| 155 | :type 'string) | 152 | :type 'string) |
| 156 | 153 | ||
| 157 | (defcustom tramp-encoding-command-interactive | 154 | (defcustom tramp-encoding-command-interactive |
| 158 | (unless (string-match "cmd\\.exe" (or tramp-encoding-shell "")) "-i") | 155 | (unless (boundp 'w32-shell-name) "-i") |
| 159 | "Use this switch together with `tramp-encoding-shell' for interactive shells. | 156 | "Use this switch together with `tramp-encoding-shell' for interactive shells. |
| 160 | See the variable `tramp-encoding-shell' for more information." | 157 | See the variable `tramp-encoding-shell' for more information." |
| 161 | :version "24.1" | 158 | :version "24.1" |