X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f Date: Sun, 03 Mar 2002 18:32:53 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp-workers AT delorie DOT com Message-Id: <9791-Sun03Mar2002183253+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: <200203031207.g23C7a900837@mother.ludd.luth.se> (message from Martin Str|mberg on Sun, 3 Mar 2002 13:07:36 +0100 (MET)) Subject: Re: bash seems a little confused References: <200203031207 DOT g23C7a900837 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 Precedence: bulk > From: Martin Str|mberg > Date: Sun, 3 Mar 2002 13:07:36 +0100 (MET) > > > > Sounds like Bash doesn't expect the application to chdir? Can you try > > something similar with another program, like `less', or even command.com? > > In that other application, change the directory, then exit, and see if > > Bash gets confused in the same way. > > I'm not sure what you mean. Neither do I: my brain was off when I wrote that, since shelling out of Emacs starts a new instance of Bash, so it has nothing to do with preserving the working directory. Sorry. I tried this now, and I cannot reproduce the problem, I think. This sequence of commands: set SHELL=c:/djgpp/bin/bash.exe emacs -q foo/f.c C-z lands me in a shell, where "pwd" reports `foo', and "ls" indeed prints the files in `foo'. Note that Emacs puts a PWD variable into the environment when it spawns a shell, and the value of PWD should state the directory of the file you were editing when you shelled out. Does this happen for you? Could this be a result of some local customizations, either in Emacs or in Bash init files? > Actually I think I found a way to reproduce it. I stand in > e:/hackery/bash_emacs_confusion and do "emacs a/c" where a/c doesn't > exist (a exists and is a directory), then I press C-Z the first thing > I do (after waiting some seconds). Can't reproduce this, either. Is this on DOS or on Windows? Also, what version of Bash?