From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lars Hansen Newsgroups: gmane.emacs.bugs Subject: Eshell under Windows Date: Fri, 07 Feb 2003 21:36:58 +0100 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3E4418EA.3050509@math.ku.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1044650158 29235 80.91.224.249 (7 Feb 2003 20:35:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 7 Feb 2003 20:35:58 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18hFE4-0007bF-00 for ; Fri, 07 Feb 2003 21:35:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18hFFH-0005Up-02 for gnu-bug-gnu-emacs@m.gmane.org; Fri, 07 Feb 2003 15:37:11 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18hFF9-0005UV-00 for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2003 15:37:03 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18hFF8-0005UG-00 for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2003 15:37:02 -0500 Original-Received: from [62.84.220.10] (helo=mail.dantel.dk) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18hFF7-0005UB-00 for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2003 15:37:01 -0500 Original-Received: from math.ku.dk [62.84.221.46] by mail.dantel.dk with ESMTP (SMTPD32-7.13) id A9D12EB03D2; Fri, 07 Feb 2003 21:40:49 +0100 User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4411 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4411 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/