tramp-devel
[Top][All Lists]
Advanced

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

Re: tramp (2.2.11-24.5); Can't connect to qnx4 machine via telnet


From: Michael Kuryshev
Subject: Re: tramp (2.2.11-24.5); Can't connect to qnx4 machine via telnet
Date: Fri, 08 Apr 2016 02:38:09 +0300
User-agent: Microsoft-MacOutlook/0.0.0.160212

On 07/04/16 21:20, "Michael Albinus" <address@hidden> wrote:


>Michael Kuryshev <address@hidden> writes:
>
>Hi Michael,
>
>[...]
>
>> 20:55:21.569455 tramp-send-command (6) # exec env ENV='' HISTFILE=/dev/null 
>> PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS3='' /bin/sh
>> 20:55:48.669640 tramp-accept-process-output (10) # *tramp/telnet 
>> address@hidden run *tramp/telnet address@hidden
>> exec env ENV='' HISTFILE=/dev/null PROMPT_COMMAND='' PS1=\#\$\  PS2='' 
>> PS3='' /bin/sh
>> #
>
>Here we are. Tramp sends the command /bin/sh together with the
>environment variable "PS1=\#\$\ ". That means, it expects the prompt "#$ ".
>But there's only the prompt "# ". You see it also in your manual connection.
>So Tramp is stalled, waiting for the "proper" prompt.
>
>Not sure what we could do about. Tramp has good reasons to expect this
>prompt; IIRC there are shells which insist in either # or $ being part
>of the prompt, depending on whether you are root, or not. So we cannot
>change the prompt in Tramp in general.
>
>Do you have an explanation why /bin/sh does not use $PS1 as instructed?
>Which shell is this (bash, ksh, whatever)? Are there restrictions on
>that shell? Does the man page on your qnx4 machine tells something
>about?

I’m not sure why that happens. QNX4 uses modified korn shell and an
old one. I can’t set $PS1 from `env' command but I can pass additional
env variable ENV pointing to ~/.kshrc which sets proper prompt
invitation. 

Is it possible to modify exec's env parameters? I would like to change

    ENV=''

to

    ENV=/.kshrc

.

Thanks.




reply via email to

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