Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com To: "Jeff Rancier" Cc: "Eric Hanchrow" , "Emacs Help (Windows)" , "Cygwin" Subject: Re: [h-e-w] RE: Can't seem to get bash to work in NTEmacs References: Cc: Karel Sprenger X-Public-Key: http://pgp5.ai.mit.edu:11371/pks/lookup?op=get&search=0xA4846394 From: Karel Sprenger Date: 15 Oct 2001 20:30:28 +0200 In-Reply-To: Message-ID: Lines: 45 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 . 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/