* Error, when launching cygwin bash from Emacs
@ 2014-09-18 17:35 Ivanov Dmitry
0 siblings, 0 replies; only message in thread
From: Ivanov Dmitry @ 2014-09-18 17:35 UTC (permalink / raw)
To: help-gnu-emacs
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?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-09-18 17:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-18 17:35 Error, when launching cygwin bash from Emacs Ivanov Dmitry
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.