| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| To: | "Jeff Rancier" <jeff DOT rancier AT softechnics DOT com> |
| Cc: | "Eric Hanchrow" <offby1 AT blarg DOT net>, |
| "Emacs Help (Windows)" <help-emacs-windows AT gnu DOT org>, | |
| "Cygwin" <cygwin AT cygwin DOT com> | |
| Subject: | Re: [h-e-w] RE: Can't seem to get bash to work in NTEmacs |
| References: | <AHEBJIFNCIGOLPDBHOBKMEIIDCAA DOT jeff DOT rancier AT softechnics DOT com> |
| Cc: | Karel Sprenger <cjas AT xs4all DOT nl> |
| X-Public-Key: | http://pgp5.ai.mit.edu:11371/pks/lookup?op=get&search=0xA4846394 |
| From: | Karel Sprenger <cjas AT xs4all DOT nl> |
| Date: | 15 Oct 2001 20:30:28 +0200 |
| In-Reply-To: | <AHEBJIFNCIGOLPDBHOBKMEIIDCAA.jeff.rancier@softechnics.com> |
| Message-ID: | <uy9mc92nv.fsf@xs4all.nl> |
| Lines: | 45 |
| User-Agent: | Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
| MIME-Version: | 1.0 |
Hi,
>>> On Mon, 15 Oct 2001 14:13:55 -0400, Jeff Rancier (Jeff) wrote:
Jeff>
Jeff> I tried the following in emacs -q, and it does work.
Jeff> (setq exec-path (cons "C:/cygwin/bin" exec-path))
Jeff> (setenv "PATH" (concat "C:\\cygwin\\bin;" (getenv "PATH")))
Jeff> (setq process-coding-system-alist '(("bash" . undecided-unix)))
Jeff> (setq w32-quote-process-args ?\")
Jeff> (setq shell-file-name "c:/cygwin/bin/bash.exe")
Jeff> (setenv "SHELL" shell-file-name)
Jeff> (setq explicit-shell-file-name shell-file-name)
Jeff> (add-hook 'comint-output-filter-functions
Jeff> 'comint-strip-ctrl-m)
Jeff>
Jeff> So I just need to somehow figure out what's stepping on what?
Jeff>
In my .emacs I have the following
;; Add proc-filter-shell-output-filter to get rid of ^M in shells
(require 'proc-filters)
(add-hook 'comint-output-filter-functions 'proc-filter-shell-output-filter)
(if (eq system-type 'windows-nt)
(progn
(setenv "PID" nil)
(setq w32-quote-process-args ?\")
(setq process-coding-system-alist
(cons '("bash" . (raw-text-unix . raw-text-unix))
process-coding-system-alist))
))
proc-filters.el, containing some generally useful process filters, is written
by Noah Friedman <friedman AT splode DOT com>. With these in place and SHELL set to
"bash" my shell under emacs works just great.
Cheers,
Karel
--
Karel Sprenger, solution architect
COMPAQ, Professional Services
Phone: +31 (30) 283 4542 Private: +31 (20) 670 0942
E-mail: karel DOT sprenger AT compaq DOT com Private: cjas AT xs4all DOT nl
"Showing off is a fool's idea of glory." -- Bruce Lee
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |