unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Shuguang Sun <shuguang@gmail.com>
Cc: 29149@debbugs.gnu.org
Subject: bug#29149: Tramp shell uses local shell setting in windows
Date: Sun, 07 Jan 2018 13:44:30 +0100	[thread overview]
Message-ID: <87vagdkfdd.fsf@gmx.de> (raw)
In-Reply-To: <CACspjXfiu80n3bxhLUgiORyTMVvJuUBJj8_NfwXLaPfX1n7n=g@mail.gmail.com> (Shuguang Sun's message of "Sun, 7 Jan 2018 12:52:58 +0800")

Shuguang Sun <shuguang@gmail.com> writes:

> Hi Michael,

Hi Shuguang,

> Here I focus on the connection from Windows local to linux remote
>
> 1. For the shell command:
> The setting below from 6.5.2 does make the shell command work.
>   (connection-local-set-profile-variables
>    'remote-bash
>    '((explicit-shell-file-name . "/bin/bash")
>      (explicit-bash-args . ("-i"))))
>
> It must specify the explicit-shell-file-name. Otherwise, once the code
> in function shell trying to set explicit-shell-file-name sill has
> bugs:
> 1.1 expand-file-name will add c:/ to the shell-file name because the
> local is windows
> 1.2 the default directory for read-file-name is better to use
> (file-remote-p default-directory) "/" than default-directory
> "/path/path/..."
>
> Otherwise this part of code is not necessary.
>
> 2. 6.5.3 Running ‘shell-command’ on a remote host or other section
> can't solve "start /b" issue. It is introduced by
> dired-do-shell-command (in dired-aux.el). It checks w32-shell for
> local environment and then add "start /b" to the command. However if
> it is in a tramp dir (e.g. linux server), the command with "start /b"
> will be transpose to remote handler. The linux shell can't understand
> it.

Next days, I will hijack a Windows machine, and try to reproduce the
problem, and check your proposed patch.

> If Windows to Windows connection will not meet this issue.

???

In this case, Tramp is not involved.

Best regards, Michael.





  reply	other threads:[~2018-01-07 12:44 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 [this message]
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
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

  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=87vagdkfdd.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=29149@debbugs.gnu.org \
    --cc=shuguang@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 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).