* lisp/net/tramp-adb.el (tramp-adb-connection-local-default-profile):
* lisp/net/tramp-integration.el (tramp-connection-local-default-profile):
Do not set it on w32 systems. (Bug#35769)
;; Default settings for connection-local variables.
(defconst tramp-adb-connection-local-default-profile
- '((shell-file-name . "/system/bin/sh")
- (shell-command-switch . "-c"))
+ ;; `w32-shell-name' is derived from `shell-file-name'. Don't let it
+ ;; be confused.
+ (unless (eq system-type 'windows-nt)
+ '((shell-file-name . "/system/bin/sh")
+ (shell-command-switch . "-c")))
"Default connection-local variables for remote adb connections.")
;; `connection-local-set-profile-variables' and
;;; Default connection-local variables for Tramp:
(defconst tramp-connection-local-default-profile
- '((shell-file-name . "/bin/sh")
- (shell-command-switch . "-c"))
+ ;; `w32-shell-name' is derived from `shell-file-name'. Don't let it
+ ;; be confused.
+ (unless (eq system-type 'windows-nt)
+ '((shell-file-name . "/bin/sh")
+ (shell-command-switch . "-c")))
"Default connection-local variables for remote connections.")
;; `connection-local-set-profile-variables' and