On 07/04/16 21:20, "Michael Albinus" <[email protected]> wrote:
>Michael Kuryshev <[email protected]> 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 >> [email protected]* run *tramp/telnet [email protected]* >> 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. _______________________________________________ Tramp-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/tramp-devel
