all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Fabrice Popineau <fabrice.popineau-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Emacs developers <emacs-devel-mXXj517/zsQ@public.gmane.org>,
	Msys2
	<msys2-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Emacs, MSYS2 bash and term mode
Date: Fri, 7 Apr 2017 12:02:03 +0200	[thread overview]
Message-ID: <CAFgFV9Pwjutb4sdbAhukwuz8jJXc_qHjoaw7DZeTF6n4LeahYA@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1009 bytes --]

Hi lists,

Currently, it seems that no terminal emulator runs the msys2 bash under a
mingw64 emacs.
I am reporting against emacs 25.2.
My findings up to now :
- "/bin/sh" is hardwired in lisp/term.el whereas the full windows path to
bash.exe has to be given in term-exec-1
- the command that is run in term-exec-1 is built by :
    (apply 'start-process name buffer
           (getenv "SHELL") "-c"
  (format "stty -nl echo rows %d columns %d sane 2>/dev/null;\
if [ $1 = .. ]; then shift; fi; exec \"$@\""
  term-height term-width)
  ".."
  command "-i" switches)))

I had to add the "-i" option to bash.exe, else bash won't communicate with
emacs

- the stty seems to be ignored by bash, anyway the buffer doesn't get
proper cr
- term.el tries to track the current directory and calls the cd function
with msys2 paths. This obviously fails because emacs being mingw64 emacs
expects windows paths.

Did anybody manage to run term.el with the msys2 bash from a windows emacs ?

Thanks for your help,

Fabrice

[-- Attachment #1.2: Type: text/html, Size: 1701 bytes --]

[-- Attachment #2: Type: text/plain, Size: 202 bytes --]

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

[-- Attachment #3: Type: text/plain, Size: 192 bytes --]

_______________________________________________
Msys2-users mailing list
Msys2-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/msys2-users

             reply	other threads:[~2017-04-07 10:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-07 10:02 Fabrice Popineau [this message]
2017-04-07 12:43 ` Emacs, MSYS2 bash and term mode Eli Zaretskii

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=CAFgFV9Pwjutb4sdbAhukwuz8jJXc_qHjoaw7DZeTF6n4LeahYA@mail.gmail.com \
    --to=fabrice.popineau-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=emacs-devel-mXXj517/zsQ@public.gmane.org \
    --cc=msys2-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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 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.