From 5b7752a865f22171a6389b6c26dd13ad7009a2de Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Tue, 15 Feb 2022 18:13:04 +0100 Subject: [PATCH] Fix problem with popd for in remote shell buffers * lisp/shell.el (shell-prefixed-directory-name): Use `file-local-name' for DIR. (Bug#53927) --- lisp/shell.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/shell.el b/lisp/shell.el index ffaeb61c0e7..c9def1bb3f3 100644 --- a/lisp/shell.el +++ b/lisp/shell.el @@ -941,7 +941,7 @@ Environment variables are expanded, see function `substitute-in-file-name'." dir (if (file-name-absolute-p dir) ;; The name is absolute, so prepend the prefix. - (concat comint-file-name-prefix dir) + (concat comint-file-name-prefix (file-local-name dir)) ;; For relative name we assume default-directory already has the prefix. (expand-file-name dir)))) -- 2.39.2