[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 'exec /bin/bash --login' in ~/.profile
From: |
Marc Girod |
Subject: |
Re: 'exec /bin/bash --login' in ~/.profile |
Date: |
Thu, 10 Feb 2011 12:37:49 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Marc Girod <marc.girod <at> gmail.com> writes:
> None, Thanks!
Sorry. New occurrence of the no Id error, flushed with
tramp-cleanup-connection (/bin/id found on remote host).
More details on 'exec /bin/bash --login' (same user):
~/.bash_profile run, but not only PS1 overwritten,
but also PATH (which means that I pretty much have to re-run it)
Confirmed from the debug buffer (I have to wrap some lines for gmane):
11:51:40.258167 tramp-send-command (6) # exec env ENV='' \
PROMPT_COMMAND='' PS1=\#\$\ PS2='' PS3='' /bin/sh
...
11:51:40.887167 tramp-open-connection-setup-interactive-shell (5) # \
Setting shell prompt
11:51:40.887167 tramp-send-command (6) # \
PS1=///525d2765eba4e0b1750fbb40e924da1f\#\$
11:51:41.068167 tramp-wait-for-regexp (6) #
///525d2765eba4e0b1750fbb40e924da1f#$
...
11:51:41.902167 tramp-set-remote-path (5) # Setting $PATH \
environment variable
11:51:41.903167 tramp-send-command (6) #
PATH=/usr/xpg4/bin:/usr/ccs/bin:/usr/bin:/usr/sbin:/usr/local/bin; \
export PATH
...
11:51:43.570167 tramp-send-command (6) # cd
/view/emagiro_t7/vobs/atcctest/ClearCase-SyncTree/; \
exec /usr/bin/bash --noediting -i
This doesn't seem to be a setting of mine...?
Unless... I do have: explicit-shell-file-name "/usr/bin/bash"...
This was however meant for my local host!
The question is: I understand that tramp might need to set a friendly
environment for the time of establishing the connection.
But how am I supposed to restore my own environment after the
connection has completed?
Actually, the prompt I am left with is not the one set in the debug
buffer transcript. This one was: ///525d2765eba4e0b1750fbb40e924da1f#$,
not merely #$
Marc
- 'exec /bin/bash --login' in ~/.profile, Marc Girod, 2011/02/09
- Re: 'exec /bin/bash --login' in ~/.profile, Michael Albinus, 2011/02/09
- Re: 'exec /bin/bash --login' in ~/.profile, Marc Girod, 2011/02/09
- Re: 'exec /bin/bash --login' in ~/.profile, Michael Albinus, 2011/02/09
- Re: 'exec /bin/bash --login' in ~/.profile, Marc Girod, 2011/02/09
- Re: 'exec /bin/bash --login' in ~/.profile,
Marc Girod <=
- Re: 'exec /bin/bash --login' in ~/.profile, Michael Albinus, 2011/02/10
- Re: 'exec /bin/bash --login' in ~/.profile, Marc Girod, 2011/02/10
- Re: 'exec /bin/bash --login' in ~/.profile, Marc Girod, 2011/02/10
- Re: 'exec /bin/bash --login' in ~/.profile, Michael Albinus, 2011/02/10