From: Koichi Arakawa <arakawa@pp.iij4u.or.jp>
To: 37953@debbugs.gnu.org
Subject: bug#37953: tramp: a local bash does not start
Date: Mon, 28 Oct 2019 09:07:13 +0900 (=?UTF-8?Q?=E6=9D=B1=E4=BA=AC?= (=?UTF-8?Q?=E6=A8=99=E6=BA=96=E6=99=82?=)) [thread overview]
Message-ID: <20191028.090713.513463528595593480.arakawa@pp.iij4u.or.jp> (raw)
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)
next reply other threads:[~2019-10-28 0:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-28 0:07 Koichi Arakawa [this message]
2019-10-28 8:55 ` bug#37953: tramp: a local bash does not start 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=20191028.090713.513463528595593480.arakawa@pp.iij4u.or.jp \
--to=arakawa@pp.iij4u.or.jp \
--cc=37953@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).