From: Michael Albinus Date: Thu, 6 Feb 2014 08:49:34 +0000 (+0100) Subject: * net/tramp-sh.el (tramp-sh-handle-start-file-process): Use "&&" X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~147 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=629de968455d2b4632fbe9db860ae4ac7e933b9b;p=emacs.git * net/tramp-sh.el (tramp-sh-handle-start-file-process): Use "&&" instead of ";" in order to avoid additional prompts. Let heredoc scripts read from tty. (Bug#16582) (tramp-send-command): No special handling of heredocs, it isn't necessary anymore. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7e37e363786..c0fc7696313 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,11 @@ +2014-02-06 Michael Albinus + + * net/tramp-sh.el (tramp-sh-handle-start-file-process): Use "&&" + instead of ";" in order to avoid additional prompts. Let heredoc + scripts read from tty. (Bug#16582) + (tramp-send-command): No special handling of heredocs, it isn't + necessary anymore. + 2014-02-06 Stefan Monnier * emacs-lisp/lisp.el (lisp-completion-at-point): Symbols don't start diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 67a517a719c..d6486de797f 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el @@ -2711,7 +2711,7 @@ the result will be a local, non-Tramp, filename." (cdr args))) (command (when (stringp program) - (format "cd %s; exec %s env PS1=%s %s" + (format "cd %s && exec %s env PS1=%s %s" (tramp-shell-quote-argument localname) (if heredoc (format "<<'%s'" tramp-end-of-heredoc) "") ;; Use a human-friendly prompt, for example for `shell'. @@ -2720,7 +2720,7 @@ the result will be a local, non-Tramp, filename." (file-remote-p default-directory) tramp-initial-end-of-output)) (if heredoc - (format "%s\n%s\n%s" + (format "%s\n(\n%s\n)