From: Michael Albinus <michael.albinus@gmx.de>
To: Vasilij Schneidermann <v.schneidermann@gmail.com>
Cc: 17295@debbugs.gnu.org
Subject: bug#17295: 24.3; Add TRAMP fixes for history clobbering to pretest
Date: Mon, 28 Apr 2014 12:07:53 +0200 [thread overview]
Message-ID: <87ha5du5qe.fsf@gmx.de> (raw)
In-Reply-To: <20140428074632.GA799@odonien.bg.bib.de> (Vasilij Schneidermann's message of "Mon, 28 Apr 2014 09:46:32 +0200")
Vasilij Schneidermann <v.schneidermann@gmail.com> writes:
> Hi Michael,
Hi Vasilij,
[pls keep 17295@debbugs.gnu.org in Cc, for the archives]
> I've applied the patch successfully and did a comparision test between
> both Emacs 24.3.1 and 24.3.90. In that test I first open a file from a
> remote host via `C-x C-f /ssh:user@host:/path/to/file`, then open a
> shell, do `ssh user@host` and hit `C-p` to check whether the history
> file has been clobbered.
>
> With Emacs 24.3.1 the test output is:
>
> [user@host ~]$ exec env ENV='' PROMPT_COMMAND='' PS1=\#\$\ PS2='' PS3='' /bin/sh
>
> With the patched Emacs 24.3.90 the test output is:
>
> [user@host ~]$ exec env ENV='' HISTFILE=/dev/null PROMPT_COMMAND='' PS1=\#\$\ PS2='' PS3='' /bin/sh
>
> So, the difference seems to be an extra environment variable set.
> Clobbering on the remote side is not prevented. Perhaps it the changes
> prevent it on the local side? I'm not sure as I've only briefly looked
> at TRAMP internals and didn't understand much.
In the past, *all* Tramp commands were visible in your remote history
file. With my patch, only the very first command is still visible, the
one you have quoted. Tramp cannot avoid this behaviour, because it has
no mean to set the remote environment prior running the very first
command. You could do this yourself by creating a local ~/.ssh/environment
file, containing
HISTFILE=/dev/null
See the ssh(1) manpage for details.
The local history shall be clean, because Tramp sets $HISTFILE locally
prior to calling anything.
> Best regards
> Vasilij
Best regards, Michael.
next prev parent reply other threads:[~2014-04-28 10:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-18 15:22 bug#17295: 24.3; Add TRAMP fixes for history clobbering to pretest Vasilij Schneidermann
2014-04-23 8:23 ` Michael Albinus
[not found] ` <20140428074632.GA799@odonien.bg.bib.de>
2014-04-28 10:07 ` Michael Albinus [this message]
2014-05-06 8:53 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ha5du5qe.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=17295@debbugs.gnu.org \
--cc=v.schneidermann@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.