[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [h-e-w] Unable to launch cygwin bash (M-x shell) in win 7 64 bit
From: |
Sarir Khamsi |
Subject: |
Re: [h-e-w] Unable to launch cygwin bash (M-x shell) in win 7 64 bit |
Date: |
Mon, 30 Jul 2012 11:11:14 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (windows-nt) |
Sivaram Neelakantan <address@hidden> writes:
> I've run into this problem and I don't know where to start. I got a
> new laptop and went about installing all the usual bits of software,
> Emacs and Cygwin. Things mostly work as advertised....however when I
> do M-x shell, I get
[...]
What version of Emacs are you running?
> and my cygwin configuration in my .Emacs is
>
> (setq exec-path (cons "C:/gnu/bin/" exec-path))
> (setq exec-path (cons "C:/cygwin/usr/bin" (cons "C:/cygwin/bin" exec-path)))
> (setq exec-path (cons "C:/MiKTeX2.9/miktex/bin" exec-path))
> (setenv "PATH" (concat
> "C:\\MiKTeX2.9\\miktex\\bin;C:\\cygwin\\bin;C:\\cygwin\\usr\\bin;C:\\gnu\\bin\\;"
> (getenv "PATH")))
>
> ;; NT-emacs assumes a Windows command shell, which you change
> ;; here.
> ;;
> (setq process-coding-system-alist '(("bash" . undecided-unix)))
> (setq w32-quote-process-args ?\")
I stopped using these last two commands above.
> (setq shell-file-name "/usr/bin/bash")
> ;;(setq shell-file-name "C:/cygwin/usr/bin/bash")
> (setenv "SHELL" shell-file-name)
My version looks like the one you commented out, ie:
(setq shell-file-name "C:/cygwin/bin/bash.exe")
> (setq explicit-shell-file-name shell-file-name)
> ;; This removes unsightly ^M characters that would otherwise
> ;; appear in the output.
> ;;
> (add-hook 'comint-output-filter-functions
> 'comint-strip-ctrl-m)
I also stopped using the line above. Not sure if something changed in
Emacs 23.x or Cygwin but when I have problems like these, I start Emacs
with "emacs -q" and start adding lines from my ~/.emacs back till the
problem returns (actually, it just means evaluating lines or sections of
code till something blows up). Good luck.
Sarir
--
Sarir Khamsi
software guy
address@hidden