delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/03/03/13:48:12

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f
Date: Sun, 03 Mar 2002 20:45:47 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: djgpp-workers AT delorie DOT com
Message-Id: <7443-Sun03Mar2002204546+0200-eliz@is.elta.co.il>
X-Mailer: emacs 21.2.50 (via feedmail 8 I) and Blat ver 1.8.9
In-reply-to: <200203031737.g23Hb3j05523@mother.ludd.luth.se> (message from
Martin Str|mberg on Sun, 3 Mar 2002 18:37:03 +0100 (MET))
Subject: Re: bash seems a little confused
References: <200203031737 DOT g23Hb3j05523 AT mother DOT ludd DOT luth DOT se>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019