[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: remote tramp hangs
From: |
Raphaël Berbain |
Subject: |
Re: remote tramp hangs |
Date: |
Thu, 03 Dec 2009 12:22:39 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
* 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.
- Re: remote tramp hangs, (continued)
- Message not available
- Re: remote tramp hangs, Raphaël Berbain, 2009/12/02
- Re: remote tramp hangs, Michael Albinus, 2009/12/02
- Message not available
- Re: remote tramp hangs, Raphaël Berbain, 2009/12/02
- Re: remote tramp hangs, Tim X, 2009/12/02
- Re: remote tramp hangs, Raphaël Berbain, 2009/12/02
- Re: remote tramp hangs, Michael Albinus, 2009/12/02
- Re: remote tramp hangs, Andreas Politz, 2009/12/02
- Message not available
- Re: remote tramp hangs, Raphaël Berbain, 2009/12/02
- Re: remote tramp hangs, Michael Albinus, 2009/12/02
- Message not available
- Re: remote tramp hangs, Raphaël Berbain, 2009/12/03
- Re: remote tramp hangs,
Raphaël Berbain <=
- Re: remote tramp hangs, Michael Albinus, 2009/12/03
- Message not available
- Re: remote tramp hangs, Raphaël Berbain, 2009/12/04
- Re: remote tramp hangs, Michael Albinus, 2009/12/07
- Message not available
- Re: remote tramp hangs, Raphaël Berbain, 2009/12/14
- Re: remote tramp hangs, Michael Albinus, 2009/12/15
- Message not available
- Re: remote tramp hangs, Raphaël Berbain, 2009/12/15
- Re: remote tramp hangs, Michael Albinus, 2009/12/15
Message not available
Re: remote tramp hangs, notbob, 2009/12/02