all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Eshell under Windows
@ 2003-02-07 20:36 Lars Hansen
  0 siblings, 0 replies; only message in thread
From: Lars Hansen @ 2003-02-07 20:36 UTC (permalink / raw)


I have tried to build Emacs from eshell in Emacs 21.2 under Windows, and 
I ran into the bug described below. The bug is not there in Emacs shell, 
only in eshell. And it is not there under GNU/Linux.

The problem can be reproduced in the following way:

In some directory, in my case d:/tmp, create a small C program cwd.exe 
printing current directory as returned by getcwd, and create a file 
test.el containing the function

(defun test () (message "default-directory: %s" default-directory))

Also create a subdirectory named d.
Now, create a makefile in d:/tmp with the following lines:

all:
	./cwd.exe
	mingw32-make.exe -C d
	./cwd.exe

In the subdirectory d, place a makefile with the lines

all:
	../cwd.exe
	emacs.exe --no-init-file --no-site-file --multibyte -batch -l 
d:/tmp/test.el -f test
	../cwd.exe

 From an eshell buffer in Emacs, change to d:/tmp an run 
mingw32-make.exe. The output will be:

d:/tmp $ mingw32-make.exe
./cwd.exe
cwd: D:\tmp
mingw32-make.exe -C d
mingw32-make.exe[1]: Entering directory `D:/tmp/d'
../cwd.exe
cwd: D:\tmp\d
emacs.exe --no-init-file --no-site-file --multibyte -batch -l 
d:/tmp/test.el -f test
default-directory: d:/tmp/
../cwd.exe
cwd: D:\tmp\d
mingw32-make.exe[1]: Leaving directory `D:/tmp/d'
./cwd.exe
cwd: D:\tmp
d:/tmp $

Observe that Emacs reports default-directory to be d:/tmp/ although 
Emacs appears to be started in d:/tmp/d/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-02-07 20:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-07 20:36 Eshell under Windows Lars Hansen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.