all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: raphael.berbain@gmail.com (Raphaël Berbain)
To: help-gnu-emacs@gnu.org
Subject: Re: remote tramp hangs
Date: Thu, 03 Dec 2009 12:22:39 +0100	[thread overview]
Message-ID: <yzvocmgl2tc.fsf@did75-11-82-231-40-223.fbx.proxad.net> (raw)
In-Reply-To: yzvws14l7rz.fsf@did75-11-82-231-40-223.fbx.proxad.net

* Raphaël Berbain:

> * Michael Albinus:
>
>>> 11:52:54.727166 tramp-send-command (6) # exec env ENV='' PROMPT_COMMAND='' PS1=\$\  PS2='' PS3='' /bin/sh
>>> 11:52:55.883214 tramp-accept-process-output (10) # 
>>> exec env ENV='' PROMPT_COMMAND='' PS1=\$\  PS2='' PS3='' /bin/sh
>>> # 
>>
>> Tramp starts /bin/sh on the remote host, and expects "$ " as prompt (see
>> PS1). But the prompt is still "# ". That is NOT OK.
>>
>> Is there something in the .profile of root, which overrides the PS1
>> settings?
>
> Not that I know of, but then...

More on that:  Host is openbsd 4.5, where sh actually is ksh.
http://www.openbsd.org/cgi-bin/man.cgi?query=ksh&apropos=0&sektion=0&manpath=OpenBSD+4.5&arch=i386&format=html says:

"""The default prompt is `$ ' for non-root users, `# ' for root.  If ksh
is invoked by root and PS1 does not contain a `#' character, the default
value will be used even if PS1 already exists in the environment."""

Curiously, "sh" man page doesn't say that... but sh still does it.

Changing the PS1 sent by tramp to include '#' (i.e. "#$ ") works around
that shell behaviour.


  reply	other threads:[~2009-12-03 11:22 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-01 11:03 remote tramp hangs Raphaël Berbain
2009-12-01 18:16 ` Andreas Politz
2009-12-01 19:04 ` Peter Dyballa
2009-12-01 19:47 ` Harry Putnam
2009-12-01 20:12 ` Michael Albinus
     [not found] ` <mailman.11972.1259694305.2239.help-gnu-emacs@gnu.org>
2009-12-01 21:46   ` Raphaël Berbain
     [not found] ` <mailman.11976.1259697012.2239.help-gnu-emacs@gnu.org>
2009-12-01 21:54   ` Raphaël Berbain
     [not found] ` <mailman.11977.1259698390.2239.help-gnu-emacs@gnu.org>
2009-12-01 21:55   ` Raphaël Berbain
2009-12-02  9:23     ` Michael Albinus
     [not found]     ` <mailman.12019.1259745826.2239.help-gnu-emacs@gnu.org>
2009-12-02  9:56       ` Raphaël Berbain
2009-12-02 10:15         ` Tim X
2009-12-02 13:56           ` Raphaël Berbain
2009-12-02 13:01         ` Michael Albinus
2009-12-02 17:02           ` Andreas Politz
     [not found]         ` <mailman.12025.1259758918.2239.help-gnu-emacs@gnu.org>
2009-12-02 13:56           ` Raphaël Berbain
2009-12-02 21:33             ` Michael Albinus
     [not found]             ` <mailman.12053.1259789634.2239.help-gnu-emacs@gnu.org>
2009-12-03  9:35               ` Raphaël Berbain
2009-12-03 11:22                 ` Raphaël Berbain [this message]
2009-12-03 20:58                   ` Michael Albinus
     [not found]                   ` <mailman.12120.1259873928.2239.help-gnu-emacs@gnu.org>
2009-12-03 22:50                     ` Raphaël Berbain
2009-12-07  6:43                       ` Michael Albinus
     [not found]                       ` <mailman.12409.1260168197.2239.help-gnu-emacs@gnu.org>
2009-12-14 14:20                         ` Raphaël Berbain
2009-12-15  6:27                           ` Michael Albinus
     [not found]                           ` <mailman.12991.1260858434.2239.help-gnu-emacs@gnu.org>
2009-12-15  8:14                             ` Raphaël Berbain
2009-12-15 21:17                               ` Michael Albinus
2009-12-02 22:03 ` notbob

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yzvocmgl2tc.fsf@did75-11-82-231-40-223.fbx.proxad.net \
    --to=raphael.berbain@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.