Hello,I don't know whether this is a tramp issue or a shell(.el) issue, but I am getting a strange prompt when running a remote shell using plink from ntemacs on Win7 to a remote linux host. It looks like the prompt is set to the value of tamp-end-of-output as defvar'd in tramp.el.
I first open a dired to user's home directory on the remote machine (C-x C-f /plink:u...@remote:). Then in this buffer I type C-u M-x shell, name the buffer *remote* and accept the default remote directory. The remote shell comes up OK but as mentioned the prompt is strange :
///cacd2b7cdc0b12a4e20392e313ca1390#$ ///cacd2b7cdc0b12a4e20392e313ca1390#$echo ">>>>$PS1<<<<" >>>>///cacd2b7cdc0b12a4e20392e313ca1390#$<<<< ///cacd2b7cdc0b12a4e20392e313ca1390#$ the prompt can oviously be reset easily but this looks like a bug IMHO ///cacd2b7cdc0b12a4e20392e313ca1390#$PS1="[...@\h \w]$ " [u...@remote ~]$ echo $INSIDE_EMACS 24.0.50.1,tramp:2.1.19-pre [u...@remote ~]$ echo $SHELL /bin/bash [u...@remote ~]$ bash --version GNU bash, version 3.00.15(1)-release (i686-redhat-linux-gnu) Copyright (C) 2004 Free Software Foundation, Inc. [u...@remote ~]$ uname -aLinux remote 2.6.18-194.17.1.el5.028stab070.7 #1 SMP Fri Oct 1 14:59:55 MSD 2010 i686 i686 i386 GNU/Linux
[u...@remote ~]$One workaround for not having to reset the prompt manually for each session is to (setenv "ESHELL" "bash") in the .emacs and create a .emacs_bash containing
# reset the prompt for remote tramp shellsif [ "${INSIDE_EMACS/*tramp*/tramp}" == "tramp" ]; then PS1="[...@\h \w]$ ";fi
I wonder is there might be a cleaner way.
TIA, and best regards,
--
Christian Millour -- [email protected] -- +33(0)6 80 13 26 82
debug_tramp_slash_plink_user_at_remote
Description: Binary data
_______________________________________________ Tramp-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/tramp-devel
