; Fix last change in tramp-sh.el

* lisp/net/tramp-sh.el (tramp-open-shell): Avoid cascaded call of
command.
This commit is contained in:
Michael Albinus 2026-09-10 09:06:42 +02:00
parent eea59005ad
commit 82ed61285e

View file

@ -4447,7 +4447,7 @@ file exists and nonzero exit status otherwise."
(when (stringp tramp-histfile-override)
(when (and (string-match-p "~" tramp-histfile-override)
(or (not (tramp-get-home-directory vec))
(not (file-directory-p (tramp-get-home-directory vec)))))
(not (tramp-send-command-and-check vec "(cd)"))))
(tramp-user-error
vec "No home directory, change `tramp-histfile-override'"))
(when (file-name-directory tramp-histfile-override)