[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Setting shell prompt of remote /bin/sh
From: |
lawrence mitchell |
Subject: |
Re: Setting shell prompt of remote /bin/sh |
Date: |
Tue, 10 Sep 2002 14:38:06 +0100 |
User-agent: |
Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2.90 (i386-mingw-windows98.2222) |
Kai Grossjohann wrote:
> After asking in comp.unix.shell I got the following nifty suggestion:
> after Tramp has sent "exec /bin/sh" to the remote host, we send
> "PS1='$ '" after a short pause. Then we wait a couple of seconds for
> an answer. If nothing appears, then we send "PS1='$ '" again, and
> then we wait again, and so on.
> Do you think that might work?
The only way I can really see it failing is if "exec /bin/sh" fails
in some way, however, since tramp is a nop in that situation
anyway, I don't really see it being a great problem.
--
lawrence mitchell <address@hidden>