3501 |
5 "Starting remote shell `%s' for tilde expansion..." shell) |
5 "Starting remote shell `%s' for tilde expansion..." shell) |
3502 |
(tramp-send-command |
(tramp-send-command |
3503 |
multi-method method user host |
multi-method method user host |
3504 |
(concat "PS1='$ ' ; exec " shell)) ; |
(concat "PS1='$ ' exec " shell)) ; |
3505 |
(unless (tramp-wait-for-regexp |
(unless (tramp-wait-for-regexp |
3506 |
(get-buffer-process (current-buffer)) |
(get-buffer-process (current-buffer)) |
3507 |
60 (format "\\(\\$ *\\|\\(%s\\)\\'\\)" shell-prompt-pattern)) |
60 (format "\\(\\$ *\\|\\(%s\\)\\)\\'" shell-prompt-pattern)) |
3508 |
(pop-to-buffer (buffer-name)) |
(pop-to-buffer (buffer-name)) |
3509 |
(error "Couldn't find remote `%s' prompt." shell)) |
(error "Couldn't find remote `%s' prompt." shell)) |
3510 |
|
(tramp-message |
3511 |
|
10 "Setting remote shell prompt...") |
3512 |
(process-send-string nil (format "PS1='%s%s%s'; PS2=''; PS3=''%s" |
(process-send-string nil (format "PS1='%s%s%s'; PS2=''; PS3=''%s" |
3513 |
tramp-rsh-end-of-line |
tramp-rsh-end-of-line |
3514 |
tramp-end-of-output |
tramp-end-of-output |
3515 |
tramp-rsh-end-of-line |
tramp-rsh-end-of-line |
3516 |
tramp-rsh-end-of-line)) |
tramp-rsh-end-of-line)) |
3517 |
(tramp-wait-for-output) |
(tramp-wait-for-output) |
3518 |
|
(tramp-message |
3519 |
|
10 "Setting remote shell prompt...done") |
3520 |
(tramp-send-command multi-method method user host "echo hello") |
(tramp-send-command multi-method method user host "echo hello") |
3521 |
(tramp-message 5 "Waiting for remote `%s' to start up..." shell) |
(tramp-message 5 "Waiting for remote `%s' to start up..." shell) |
3522 |
(unless (tramp-wait-for-output 5) |
(unless (tramp-wait-for-output 5) |
5658 |
If you can give a simple set of instructions to make this bug happen |
If you can give a simple set of instructions to make this bug happen |
5659 |
reliably, please include those. Thank you for helping kill bugs in |
reliably, please include those. Thank you for helping kill bugs in |
5660 |
TRAMP. |
TRAMP. |
5661 |
|
|
5662 |
|
Another useful thing to do is to put (setq tramp-debug-buffer t) in |
5663 |
|
the ~/.emacs file and to repeat the bug. Then, include the contents |
5664 |
|
of the *tramp/foo* buffer and the *debug tramp/foo* buffer in your bug |
5665 |
|
report. |
5666 |
|
|
5667 |
--bug report follows this line--"))) |
--bug report follows this line--"))) |
5668 |
|
|
5669 |
(defalias 'tramp-submit-bug 'tramp-bug) |
(defalias 'tramp-submit-bug 'tramp-bug) |