From: Ivanov Dmitry <usr345@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Error, when launching cygwin bash from Emacs
Date: Thu, 18 Sep 2014 21:35:15 +0400 [thread overview]
Message-ID: <CAHyAE12DggfQCGBcHr2cMvzf5PnUAs94aRKjyVhXBZq+HG-AVQ@mail.gmail.com> (raw)
I wanted to open cygwin bash inside emacs in Windows 7. I took the function
from this answer: http://stackoverflow.com/a/235356/789186
The author says, that I should pass the --login argument to bash by setting
explicit-bash-args. I did it and wrote the following:
(defun cygwin-shell ()
"Run cygwin bash in shell mode."
(interactive)
(let ((explicit-shell-file-name "C:/cygwin64/bin/bash")
(explicit-bash-args '("--login" "-i"));<- is it correct?
)
(call-interactively 'shell)))
Here are the problems, that I am facing:
1. When bash is opened I see the following errors:
bash: cannot set terminal process group (-1): Inappropriate ioctl for
device bash: no job control in this shell ]0;~
2. Every command prints the following output:
]0;~
3. I changed my home directory in /etc/passwd to /cygdrive/g/robotcomp,
but Windows default home dir (/cygdrive/c/Users/robotcomp/AppData/Roaming)
is used when I start bash process from emacs. Therefore all my settings are
not read by bash on startup.
How to fix?
reply other threads:[~2014-09-18 17:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=CAHyAE12DggfQCGBcHr2cMvzf5PnUAs94aRKjyVhXBZq+HG-AVQ@mail.gmail.com \
--to=usr345@gmail.com \
--cc=help-gnu-emacs@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 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.