Message-Id: <200110161438.f9GEcuP14248@delorie.com> 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 From: "Mark Paulus" To: "Cygwin" Date: Tue, 16 Oct 2001 08:38:31 -0600 Reply-To: "Mark Paulus" X-Mailer: PMMail 2000 Professional (2.20.2350) For Windows 2000 (5.0.2195;2) In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Re: Windows 2000 Pro / bash shell solved man bash?? On Tue, 16 Oct 2001 10:20:29 -0400, Jeff Rancier wrote: >Hello. > >I had a different version of shell.el in my load-path. The only difference >was in the function shell(), the "-i" was missing and caused bash (or >something) to fail. Can anyone shed any light on this? > >(defun shell () > (interactive) > (if (not (comint-check-proc "*shell*")) > (let* ((prog (or explicit-shell-file-name > (getenv "ESHELL") > (getenv "SHELL") > "/bin/sh")) > (name (file-name-nondirectory prog)) > (startfile (concat "~/.emacs_" name)) > (xargs-name (intern-soft (concat "explicit-" name "-args"))) > shell-buffer) > (save-excursion > (set-buffer (apply 'make-comint "shell" prog > (if (file-exists-p startfile) startfile) > (if (and xargs-name (boundp xargs-name)) > (symbol-value xargs-name) > '("-i")))) > >------------------------------^^^ > > > (setq shell-buffer (current-buffer)) > (shell-mode)) > (pop-to-buffer shell-buffer)) > (pop-to-buffer "*shell*"))) > > > >Jeff > > >-- >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/ -- 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/