From: Tom Gillespie <tgbugs@gmail.com>
To: 35769@debbugs.gnu.org
Subject: bug#35769: issue persists for su, sudo, chained ssh connections
Date: Fri, 27 May 2022 15:56:25 -0700 [thread overview]
Message-ID: <CA+G3_POucJvKzpOLdGeO1_LZyVuxNXeW8QkWQ24BFWGdE0nEAQ@mail.gmail.com> (raw)
In-Reply-To: <CAFAV3Zbg092UrH1gzkgHLYKjA_9KodLzKa-=9hUnUbXds1A8zA@mail.gmail.com>
This bug has not been resolved for /su:, /sudo:, and chained
/ssh: connections as of emacs 28.1 tramp 2.5.2.28.1, and
emacs 29 tramp 2.6-pre.
The examples below WILL TRUNCATE YOUR HISTFILE!
So if you are going to run them back it up first!
#+begin_src elisp
;; XXX BACK UP YOUR .bash_history (or similar) BEFORE RUNNING
;; XXX IT WILL BE TRUNCATED
;; in a fresh emacs -Q -no-site-file
(require 'tramp-sh)
(let ((tramp-histfile-override t))
(file-directory-p "/su::.emacs.d"))
;; in a fresh emacs -Q -no-site-file
(require 'tramp-sh)
(let ((tramp-histfile-override t))
(file-directory-p "/ssh:|su::.emacs.d"))
;; in a fresh emacs -Q -no-site-file
(require 'tramp-sh)
(let ((tramp-histfile-override t))
;; change host1 and host2 to hosts that you can access sequentially
(file-directory-p "/ssh:host1|ssh:host2:.emacs.d"))
#+end_src
next prev parent reply other threads:[~2022-05-27 22:56 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-17 1:11 bug#35769: Local .bash_history cleared when tramp-histfile-override is set to t Wanrong Lin
2019-05-18 16:18 ` Michael Albinus
[not found] ` <fb923e49-354a-2443-621e-9210560fe322@gmail.com>
[not found] ` <87ef4t5fyk.fsf@gmx.de>
[not found] ` <206e5640-86c3-4815-d28b-86ac584ee5e5@gmail.com>
2019-05-26 19:50 ` Michael Albinus
2019-06-03 18:41 ` Wanrong Lin
2019-06-03 18:49 ` Michael Albinus
2019-06-03 18:53 ` Wanrong Lin
2019-06-05 8:08 ` Michael Albinus
2020-08-18 11:31 ` Stefan Kangas
2020-08-18 13:36 ` Michael Albinus
2020-08-18 15:41 ` Wanrong Lin
2020-08-18 16:05 ` Michael Albinus
2022-05-27 22:56 ` Tom Gillespie [this message]
2022-06-09 13:42 ` Lars Ingebrigtsen
2022-06-09 14:30 ` 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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CA+G3_POucJvKzpOLdGeO1_LZyVuxNXeW8QkWQ24BFWGdE0nEAQ@mail.gmail.com \
--to=tgbugs@gmail.com \
--cc=35769@debbugs.gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).