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

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

Re: [h-e-w] subshell cd's not working


From: Stephen Leake
Subject: Re: [h-e-w] subshell cd's not working
Date: 03 Sep 2002 14:02:18 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

<address@hidden> writes:

> In the last couple of months, cd's executed by subshells have stopped
> working for me.  (I'm running Cygwin's bash for a shell.)  For
> instance, the M-x compile command generates the following commands:
> 
>     cd ~/proj
>     make -k
> 
> However the "cd ~/proj" seems not to do anything, as the "make -k" get
> executed in my $HOME directory.  If I alter the make command to
> include the "cd" everything works fine:
> 
>     cd ~/proj
>     cd ~/proj; make -k
> 
> I don't know just when this stopped working.  I'm running Emacs
> 21.2.1.
> 
> Has anybody run into this?

I use Cygwin make and bash under Emacs all the time, and I've never
had this problem. 

I would guess that you changed your .bashrc to do 'cd $HOME', or
something like that.

I always keep .bashrc _empty_, so I never get surprises like this. You
can set environment variables for the bash subshell from within Emacs,
so you don't really need anything in .bash_profile, either.

-- 
-- Stephe





reply via email to

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