Fix prompt in remote shell

* lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Do not use a
hard-coded directory in PS1.  (Bug#81177)
This commit is contained in:
Michael Albinus 2026-06-04 19:44:07 +02:00
parent 6df1d33b6c
commit 621239ae6a

View file

@ -3081,7 +3081,7 @@ will be used."
;; We discard hops, if existing, that's why we cannot use
;; `file-remote-p'.
(prompt (format "PS1=%s %s"
(tramp-make-tramp-file-name v)
(tramp-make-tramp-file-name v 'noloc)
tramp-initial-end-of-output))
;; We use as environment the difference to toplevel
;; `process-environment'.