diff options
| author | Michael Albinus | 2011-08-03 21:31:18 +0200 |
|---|---|---|
| committer | Michael Albinus | 2011-08-03 21:31:18 +0200 |
| commit | 63648a956ad27fbc0e1a33ac0164eb8a5a77f06f (patch) | |
| tree | 648d2f8960c4d0db5c30fc1a7c6764c46603a73f | |
| parent | 568352e7614eeda6d579aacf46d99c83ffc9a5d9 (diff) | |
| download | emacs-63648a956ad27fbc0e1a33ac0164eb8a5a77f06f.tar.gz emacs-63648a956ad27fbc0e1a33ac0164eb8a5a77f06f.zip | |
* net/tramp-sh.el (tramp-open-connection-setup-interactive-shell)
(tramp-open-shell): Use `tramp-shell-quote-argument'.
* net/trampver.el: Update release number.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/net/tramp-sh.el | 6 | ||||
| -rw-r--r-- | lisp/net/trampver.el | 4 |
3 files changed, 12 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6a4d4b9cc9c..28d78fa7302 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2011-08-03 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/tramp-sh.el (tramp-open-connection-setup-interactive-shell) | ||
| 4 | (tramp-open-shell): Use `tramp-shell-quote-argument'. | ||
| 5 | |||
| 6 | * net/trampver.el: Update release number. | ||
| 7 | |||
| 1 | 2011-08-03 Stefan Monnier <monnier@iro.umontreal.ca> | 8 | 2011-08-03 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 9 | ||
| 3 | * progmodes/sh-script.el (sh-font-lock-paren): Don't mistake "main" for | 10 | * progmodes/sh-script.el (sh-font-lock-paren): Don't mistake "main" for |
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 5c497748943..428bd6422d8 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el | |||
| @@ -3640,11 +3640,11 @@ file exists and nonzero exit status otherwise." | |||
| 3640 | (when extra-args (setq shell (concat shell " " extra-args))) | 3640 | (when extra-args (setq shell (concat shell " " extra-args))) |
| 3641 | (tramp-send-command | 3641 | (tramp-send-command |
| 3642 | vec (format "exec env ENV='' PROMPT_COMMAND='' PS1=%s PS2='' PS3='' %s" | 3642 | vec (format "exec env ENV='' PROMPT_COMMAND='' PS1=%s PS2='' PS3='' %s" |
| 3643 | (shell-quote-argument tramp-end-of-output) shell) | 3643 | (tramp-shell-quote-argument tramp-end-of-output) shell) |
| 3644 | t)) | 3644 | t)) |
| 3645 | ;; Setting prompts. | 3645 | ;; Setting prompts. |
| 3646 | (tramp-send-command | 3646 | (tramp-send-command |
| 3647 | vec (format "PS1=%s" (shell-quote-argument tramp-end-of-output)) t) | 3647 | vec (format "PS1=%s" (tramp-shell-quote-argument tramp-end-of-output)) t) |
| 3648 | (tramp-send-command vec "PS2=''" t) | 3648 | (tramp-send-command vec "PS2=''" t) |
| 3649 | (tramp-send-command vec "PS3=''" t) | 3649 | (tramp-send-command vec "PS3=''" t) |
| 3650 | (tramp-send-command vec "PROMPT_COMMAND=''" t))) | 3650 | (tramp-send-command vec "PROMPT_COMMAND=''" t))) |
| @@ -3736,7 +3736,7 @@ process to set up. VEC specifies the connection." | |||
| 3736 | 3736 | ||
| 3737 | (tramp-message vec 5 "Setting shell prompt") | 3737 | (tramp-message vec 5 "Setting shell prompt") |
| 3738 | (tramp-send-command | 3738 | (tramp-send-command |
| 3739 | vec (format "PS1=%s" (shell-quote-argument tramp-end-of-output)) t) | 3739 | vec (format "PS1=%s" (tramp-shell-quote-argument tramp-end-of-output)) t) |
| 3740 | (tramp-send-command vec "PS2=''" t) | 3740 | (tramp-send-command vec "PS2=''" t) |
| 3741 | (tramp-send-command vec "PS3=''" t) | 3741 | (tramp-send-command vec "PS3=''" t) |
| 3742 | (tramp-send-command vec "PROMPT_COMMAND=''" t) | 3742 | (tramp-send-command vec "PROMPT_COMMAND=''" t) |
diff --git a/lisp/net/trampver.el b/lisp/net/trampver.el index da51662b216..5492441ac77 100644 --- a/lisp/net/trampver.el +++ b/lisp/net/trampver.el | |||
| @@ -31,7 +31,7 @@ | |||
| 31 | ;; should be changed only there. | 31 | ;; should be changed only there. |
| 32 | 32 | ||
| 33 | ;;;###tramp-autoload | 33 | ;;;###tramp-autoload |
| 34 | (defconst tramp-version "2.2.2" | 34 | (defconst tramp-version "2.2.3-pre" |
| 35 | "This version of Tramp.") | 35 | "This version of Tramp.") |
| 36 | 36 | ||
| 37 | ;;;###tramp-autoload | 37 | ;;;###tramp-autoload |
| @@ -44,7 +44,7 @@ | |||
| 44 | (= emacs-major-version 21) | 44 | (= emacs-major-version 21) |
| 45 | (>= emacs-minor-version 4))) | 45 | (>= emacs-minor-version 4))) |
| 46 | "ok" | 46 | "ok" |
| 47 | (format "Tramp 2.2.2 is not fit for %s" | 47 | (format "Tramp 2.2.3-pre is not fit for %s" |
| 48 | (when (string-match "^.*$" (emacs-version)) | 48 | (when (string-match "^.*$" (emacs-version)) |
| 49 | (match-string 0 (emacs-version))))))) | 49 | (match-string 0 (emacs-version))))))) |
| 50 | (unless (string-match "\\`ok\\'" x) (error "%s" x))) | 50 | (unless (string-match "\\`ok\\'" x) (error "%s" x))) |