aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2011-07-08 16:25:25 +0200
committerMichael Albinus2011-07-08 16:25:25 +0200
commitafae1d6821cbc2bf97c27fe99ec75ca9d40fd458 (patch)
tree25387ca14938184636bc85839d00205dadad15b2
parent0757af948b8d55d29395fa8c57ea8e72a0369e66 (diff)
downloademacs-afae1d6821cbc2bf97c27fe99ec75ca9d40fd458.tar.gz
emacs-afae1d6821cbc2bf97c27fe99ec75ca9d40fd458.zip
* net/tramp-sh.el (tramp-sh-handle-start-file-process): Use a
human-friendly prompt.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/tramp-sh.el7
2 files changed, 11 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e517d6cc54d..0c912db74d9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-07-08 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp-sh.el (tramp-sh-handle-start-file-process): Use a
4 human-friendly prompt.
5
12011-07-08 Stefan Monnier <monnier@iro.umontreal.ca> 62011-07-08 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * vc/vc-bzr.el (vc-bzr-revision-keywords): Remove svn, it's only 8 * vc/vc-bzr.el (vc-bzr-revision-keywords): Remove svn, it's only
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index f342b005c4c..1c6f0844be0 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -2690,8 +2690,13 @@ the result will be a local, non-Tramp, filename."
2690 ;; When PROGRAM is nil, we just provide a tty. 2690 ;; When PROGRAM is nil, we just provide a tty.
2691 (let ((command 2691 (let ((command
2692 (when (stringp program) 2692 (when (stringp program)
2693 (format "cd %s; exec %s" 2693 (format "cd %s; exec env PS1=%s %s"
2694 (tramp-shell-quote-argument localname) 2694 (tramp-shell-quote-argument localname)
2695 ;; Use a human-friendly prompt, for example for `shell'.
2696 (tramp-shell-quote-argument
2697 (format "%s %s"
2698 (file-remote-p default-directory)
2699 tramp-initial-end-of-output))
2695 (mapconcat 'tramp-shell-quote-argument 2700 (mapconcat 'tramp-shell-quote-argument
2696 (cons program args) " ")))) 2701 (cons program args) " "))))
2697 (tramp-process-connection-type 2702 (tramp-process-connection-type