Mercurial > emacs
comparison lisp/net/tramp-fish.el @ 106470:9e96dbbd314e
Handle prompt rules of ksh in OpenBSD 4.5. Reported by Rapha¸«³l
Berbain <raphael.berbain@gmail.com>.
* net/tramp.el (tramp-end-of-output): Move up. Use `#' and `$'
characters.
(tramp-initial-end-of-output): New defconst.
(tramp-methods, tramp-find-shell)
(tramp-open-connection-setup-interactive-shell)
(tramp-maybe-open-connection): Use it.
(tramp-shell-prompt-pattern, tramp-wait-for-output): Handle
existence of `#' and `$'.
* net/tramp-fish.el (tramp-fish-maybe-open-connection): Use
`tramp-initial-end-of-output'.
author | Michael Albinus <michael.albinus@gmx.de> |
---|---|
date | Mon, 07 Dec 2009 06:38:06 +0000 |
parents | ae9f17f9fa46 |
children | 1d1d5d9bd884 |
comparison
equal
deleted
inserted
replaced
106469:ad4147368f52 | 106470:9e96dbbd314e |
---|---|
1109 | 1109 |
1110 ;; Start new process. | 1110 ;; Start new process. |
1111 (when (and p (processp p)) | 1111 (when (and p (processp p)) |
1112 (delete-process p)) | 1112 (delete-process p)) |
1113 (setenv "TERM" tramp-terminal-type) | 1113 (setenv "TERM" tramp-terminal-type) |
1114 (setenv "PS1" "$ ") | 1114 (setenv "PS1" tramp-initial-end-of-output) |
1115 (tramp-message | 1115 (tramp-message |
1116 vec 3 "Opening connection for %s@%s using %s..." | 1116 vec 3 "Opening connection for %s@%s using %s..." |
1117 tramp-current-user tramp-current-host tramp-current-method) | 1117 tramp-current-user tramp-current-host tramp-current-method) |
1118 | 1118 |
1119 (let* ((process-connection-type tramp-process-connection-type) | 1119 (let* ((process-connection-type tramp-process-connection-type) |