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

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f
From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
Message-Id: <200203031737.g23Hb3j05523@mother.ludd.luth.se>
Subject: Re: bash seems a little confused
To: djgpp-workers AT delorie DOT com
Date: Sun, 3 Mar 2002 18:37:03 +0100 (MET)
In-Reply-To: <9791-Sun03Mar2002183253+0200-eliz@is.elta.co.il> from "Eli Zaretskii" at Mar 03, 2002 06:32:53 PM
X-Mailer: ELM [version 2.5 PL2]
MIME-Version: 1.0
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

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.

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

Yes and no. PWD is present but points at
e:/hackery/bash_emacs_confusion not at
e:/hackery/bash_emacs_confusion/a (/hackery, /hackery/foo in
your case).

> Could this be a result of some local customizations, either in Emacs
> or in Bash init files?

I don't think so. I haven't configured emacs at all and I don't think
I've configured bash.

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

Windows 98.

> Also, what version of Bash?

2.04.7(1)-release says $BASH_VERSION


Right,

						MartinS

- Raw text -


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