[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dealing with strange shell prompts

From: Kai Großjohann
Subject: Dealing with strange shell prompts
Date: Fri, 06 Sep 2002 15:24:58 +0200
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu)

It seems to happen more often now that Tramp doesn't grok a shell
prompt after "exec /bin/sh" on the remote end.  I wonder if "exec
/bin/sh" could be replaced by something else which can be expected to
work better?

How about, for example, the following?

    exec env PS1='$ ' /bin/sh

I think it works under csh-like shells as well as under Bourne-ish
shells.  (Note that this command is expected to start a Bourne-ish
shell, so at this point we're not allowed to assume that we are
talking to a Bourne-ish shell already.)

What about zsh?  Does it work there, too?

And what about people with really unusual login shells, such as scsh
or this Plan9 thing?  Does Tramp currently work for them?  Will the
above command work there?

A large number of young women don't trust men with beards.  (BFBS Radio)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]