Mail Archives: djgpp-workers/2002/03/03/11:38:27
> From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
> 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?
- Raw text -