Mail Archives: djgpp-workers/2002/03/03/13:48:12
> From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
> Date: Sun, 3 Mar 2002 18:37:03 +0100 (MET)
>
> According to Eli Zaretskii:
> > I tried this now, and I cannot reproduce the problem, I think. This
> > sequence of commands:
>
> Try adding "cd /djgpp; pushd /hackery/foo" here.
The additional commands are not what makes the difference; the fact
that you run Emacs from Bash is. (My original attempt was to run it
from command.com, and just set SHELL in the environment to point to
Bash, for the inferior shell.)
I see the problem now: Bash sets PWD in the environment, expecting
Emacs to chdir there before it shells out, but the DJGPP port of
Emacs does not chdir, because that would have unwanted consequences,
pwd being a global notion on DOS/Windows. Since Emacs doesn't chdir,
it should reflect the correct value of the working directory in PWD
it passes to the inferior Bash, but it doesn't do that.
So Bash gets a value of PWD that points to one directory, while Emacs
shells out in another. This confuses Bash.
Would you like a source-level patch to try to fix this?
- Raw text -