help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [h-e-w] The bash shell from Emacs


From: Stephen Leake
Subject: Re: [h-e-w] The bash shell from Emacs
Date: 06 Aug 2004 11:48:45 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

address@hidden writes:

> Hello,
> 
> I have installed Emacs-21.3, thanks to all who have reminded me that I
> needed to set the environment variable "HOME" and locate my .emacs there in
> order for emacs to find it, and the bash shell from Cygwin.  Starting bash
> outside of Emacs yields the usual results, I can use it no problems.  When
> I start bash from Emacs through the "shell" command a shell buffer is
> opened and I get the bash prompt BUT bash doesn't recognize any command..
> 
> bash-2.05b$ ls
> : command not found
> bash-2.05b$ pwd
> : command not found
> bash-2.05b$ exit
> : command not found
> bash-2.05b$

This is odd.

> Yes I have the cygwin/ bin in my PATH.

Each process has its own copy of "PATH", and Emacs provides facilities
for changing it. So perhaps your .emacs is changing PATH to not
include Cygwin; look for "setq exec-path". Although in that case you
should not be able to start bash in the first place.

I've also had trouble with the Cygwin prompt, which wants to do color
and stuff. Try creating a file '.emacs_bash' in $HOME, containing:

export PS1="address@hidden "

That will give you a simpler prompt.

I also use a customized Emacs routine to launch a shell; if the above
doesn't fix your problem, see 'shell-mode-keys.el' in
stephe-emacs.tar.gz at http://www.toadmail.com/~ada_wizard/

I also have complete instructions for installing my current work
development environment on Windows, at
http://fsw.gsfc.nasa.gov/gds/tools_install_windows.pdf. That may
provide some helpful clues.

Good luck. The struggle is worth it :).

-- 
-- Stephe





reply via email to

[Prev in Thread] Current Thread [Next in Thread]