X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f From: Martin Str|mberg Message-Id: <200203031207.g23C7a900837@mother.ludd.luth.se> Subject: Re: bash seems a little confused To: djgpp-workers AT delorie DOT com Date: Sun, 3 Mar 2002 13:07:36 +0100 (MET) In-Reply-To: from "Eli Zaretskii" at Mar 03, 2002 01:50:24 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 According to Eli Zaretskii: > On Sun, 3 Mar 2002, Martin Str|mberg wrote: > > > emacs a/b > > > > In emacs I press C-Z and get a bash shell (1): > > > pwd > > e:/hackery/bash_emacs_confusion > > > ls > > b > > > > So bash thinks it's in e:/hackery/bash_emacs_confusion but ls shows us > > being in e:/hackery/bash_emacs_confusion/b! > > 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. Do you mean doing less a/b and then shelling out of less? > > 1) Another mystification, sometimes the screen after shelling out has > > white-grey background and black text - the emacs colours sticks. This > > is not easily reproduced. > > This isn't a Bash issue, I think: it's Emacs that restores the screen > when you shell out. > > Are you sure this happens when you shell out, not when you exit Emacs > immediately after starting it? If the latter, it's a feature: an exit Yes. 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). Right, MartinS