From: Shuguang Sun <shuguang@gmail.com>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 29149-done@debbugs.gnu.org
Subject: bug#29149: Tramp shell uses local shell setting in windows
Date: Fri, 26 Jan 2018 10:03:02 +0800 [thread overview]
Message-ID: <CACspjXc4uH=tcRX90ZhzSdt+C76pXXLoPS=Ww_9i7+yccjs4GQ@mail.gmail.com> (raw)
In-Reply-To: <87607q56xv.fsf@gmx.de>
[-- Attachment #1: Type: text/plain, Size: 1626 bytes --]
Hi Michael,
Thank you for your patient explanition. Now it is very clear to me.
On Thu, Jan 25, 2018 at 10:50 PM, Michael Albinus <michael.albinus@gmx.de>
wrote:
> Shuguang Sun <shuguang@gmail.com> writes:
>
> Hi Shuguang,
>
> > And even in case there is no explicit-shell-file-name set,
> > read-file-name shall work as expected with the existing
> > default-directory.
> >
> > If there is no explicit-shell-file-name set when local windows and
> > remote nix-llike, the read-file-name will
> > 1. put the shell-file-name "c:/..../cmdproxy.exeS" after the default
> > directory in the minibuffer prompt. User has to delete those things.
> > 2. Usually the shell file is more close to root "/" than the the
> > default directory (which is the HOME or even deeper). User has to
> > delete characters to the root and then find the shell file.
> > User experience may need improvement.
>
> You get the default in the minibuffer like
> "/plink:remotehost:<default-directory><shell-file-name>". The prompt is
> between <default-directory> and local <shell-file-name>. You do NOT need
> to delete anything from <default-directory>, delete the local
> <shell-file-name> by C-k, which must be done anyway. Then, simply type
> "/path/to/my/shell" (for example, "/bin/bash"). Note the resulting
> double-slash between <default-directory> and what you have typed! This
> works due to the electricity of file name completion in the
> minibuffer. This is roughly the same as typing the shell file name from
> the remote host's root directory.
>
> See also (info "(tramp) File name completion")
>
> Best regards, Michael.
>
[-- Attachment #2: Type: text/html, Size: 2305 bytes --]
next prev parent reply other threads:[~2018-01-26 2:03 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-05 4:10 bug#29149: Tramp shell uses local shell setting in windows Shuguang Sun
2017-11-09 9:27 ` Shuguang Sun
2017-11-11 8:57 ` Eli Zaretskii
2017-11-14 15:44 ` Michael Albinus
2017-11-16 2:20 ` Shuguang Sun
2017-11-17 14:53 ` Michael Albinus
2017-11-20 13:31 ` Michael Albinus
2017-11-25 15:26 ` Shuguang Sun
2017-11-11 9:10 ` michael.albinus
2017-11-11 10:11 ` Eli Zaretskii
2017-11-25 18:09 ` Shuguang Sun
2018-01-06 15:18 ` Shuguang Sun
2018-01-06 18:51 ` Michael Albinus
2018-01-07 4:52 ` Shuguang Sun
2018-01-07 12:44 ` Michael Albinus
2018-01-13 17:37 ` Michael Albinus
2018-01-13 19:21 ` Eli Zaretskii
2018-01-14 9:05 ` Michael Albinus
2018-01-25 12:01 ` Shuguang Sun
2018-01-25 12:30 ` Michael Albinus
2018-01-25 14:25 ` Shuguang Sun
2018-01-25 14:50 ` Michael Albinus
2018-01-26 2:03 ` Shuguang Sun [this message]
2018-01-26 14:37 ` Richard Stallman
2018-01-26 15:43 ` 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='CACspjXc4uH=tcRX90ZhzSdt+C76pXXLoPS=Ww_9i7+yccjs4GQ@mail.gmail.com' \
--to=shuguang@gmail.com \
--cc=29149-done@debbugs.gnu.org \
--cc=michael.albinus@gmx.de \
/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.