GNU bug report logs - #37953
tramp: a local bash does not start

Previous Next

Package: emacs;

Reported by: Koichi Arakawa <arakawa <at> pp.iij4u.or.jp>

Date: Mon, 28 Oct 2019 00:08:02 UTC

Severity: normal

Fixed in version 27.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 37953 in the body.
You can then email your comments to 37953 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#37953; Package emacs. (Mon, 28 Oct 2019 00:08:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Koichi Arakawa <arakawa <at> pp.iij4u.or.jp>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 28 Oct 2019 00:08:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Koichi Arakawa <arakawa <at> pp.iij4u.or.jp>
To: bug-gnu-emacs <at> gnu.org
Subject: tramp: a local bash does not start
Date: Mon, 28 Oct 2019 09:07:13 +0900
 (東京 (標準時))
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)





Reply sent to Michael Albinus <michael.albinus <at> gmx.de>:
You have taken responsibility. (Mon, 28 Oct 2019 08:57:01 GMT) Full text and rfc822 format available.

Notification sent to Koichi Arakawa <arakawa <at> pp.iij4u.or.jp>:
bug acknowledged by developer. (Mon, 28 Oct 2019 08:57:03 GMT) Full text and rfc822 format available.

Message #10 received at 37953-done <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Koichi Arakawa <arakawa <at> pp.iij4u.or.jp>
Cc: 37953-done <at> debbugs.gnu.org
Subject: Re: bug#37953: tramp: a local bash does not start
Date: Mon, 28 Oct 2019 09:55:44 +0100
Version: 27.1

Koichi Arakawa <arakawa <at> pp.iij4u.or.jp> writes:

> Hi

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.

Thanks for the report, the same error happens on GNU/Linux. So I have
applied your patch to the repositories. Closing the bug.

> Best regards,
> Koichi Arakawa

Best regards, Michael.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 25 Nov 2019 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 213 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.