unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#37953: tramp: a local bash does not start
@ 2019-10-28  0:07 Koichi Arakawa
  2019-10-28  8:55 ` Michael Albinus
  0 siblings, 1 reply; 2+ messages in thread
From: Koichi Arakawa @ 2019-10-28  0:07 UTC (permalink / raw)
  To: 37953

Hi

I'm using Emacs in the MSYS2 environment. And the local shell bash
depends on the order of its command-line switches.

When the last argument is "-i", bash starts normally.

    >C:/msys64/usr/bin/bash -norc -noprofile -i
    bash-4.4$

But in another case, it ends with an error.

    >C:/msys64/usr/bin/bash -i -norc -noprofile
    /usr/bin/bash: line 0: /usr/bin/bash: -noprofile: invalid option name

So I think we need the following patch to fix that.

Best regards,
Koichi Arakawa

--- tramp-sh.el.~1~     2019-10-20 10:48:27.300959800 +0900
+++ tramp-sh.el 2019-10-28 08:47:12.048207800 +0900
@@ -4877,9 +4877,9 @@
                           (tramp-get-connection-buffer vec)
                           (append
                            (list tramp-encoding-shell)
+                           (and extra-args (split-string extra-args))
                            (and tramp-encoding-command-interactive
-                                (list tramp-encoding-command-interactive))
-                           (and extra-args (split-string extra-args)))))))
+                                (list tramp-encoding-command-interactive)))))))

                ;; Set sentinel and query flag.  Initialize variables.
                (set-process-sentinel p #'tramp-process-sentinel)






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-28  8:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-28  0:07 bug#37953: tramp: a local bash does not start Koichi Arakawa
2019-10-28  8:55 ` Michael Albinus

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).