emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-28 1b7b69e764: Some Tramp cleanup on MS Windows


From: Michael Albinus
Subject: emacs-28 1b7b69e764: Some Tramp cleanup on MS Windows
Date: Sun, 29 May 2022 07:31:42 -0400 (EDT)

branch: emacs-28
commit 1b7b69e764370288583aeeda38069a3c8f9ec912
Author: Michael Albinus <michael.albinus@gmx.de>
Commit: Michael Albinus <michael.albinus@gmx.de>

    Some Tramp cleanup on MS Windows
    
    * lisp/net/tramp.el (tramp-restricted-shell-hosts-alist): Do not add
    localhost when `tramp-encoding-shell' is a POSIX shell.
    
    * test/lisp/net/tramp-tests.el (tramp-test31-interrupt-process):
    Skip on MS Windows.
---
 lisp/net/tramp.el            | 3 ++-
 test/lisp/net/tramp-tests.el | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 63ea8a283c..3ee1169139 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -497,7 +497,8 @@ interpreted as a regular expression which always matches."
 ;; either lower case or upper case letters.  See
 ;; <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=38079#20>.
 (defcustom tramp-restricted-shell-hosts-alist
-  (when (eq system-type 'windows-nt)
+  (when (and (eq system-type 'windows-nt)
+             (not (string-match-p "sh$" tramp-encoding-shell)))
     (list (format "\\`\\(%s\\|%s\\)\\'"
                  (regexp-quote (downcase tramp-system-name))
                  (regexp-quote (upcase tramp-system-name)))))
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index dbf62dbc1c..61fa6a5ae4 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -5019,6 +5019,7 @@ If UNSTABLE is non-nil, the test is tagged as 
`:unstable'."
                     '(:unstable)))
   (skip-unless (tramp--test-enabled))
   (skip-unless (tramp--test-sh-p))
+  (skip-unless (not (tramp--test-windows-nt-p)))
   (skip-unless (not (tramp--test-crypt-p)))
   ;; Since Emacs 26.1.
   (skip-unless (boundp 'interrupt-process-functions))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]