From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: init_buffer PWD fix Date: Wed, 24 Apr 2002 09:47:25 -0700 (PDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200204241647.g3OGlP201100@shade.twinsun.com> References: NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1019666991 9809 127.0.0.1 (24 Apr 2002 16:49:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 24 Apr 2002 16:49:51 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 170Pxn-0002Y6-00 for ; Wed, 24 Apr 2002 18:49:51 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 170PzY-0007rI-00 for ; Wed, 24 Apr 2002 18:51:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 170Pxd-000876-00; Wed, 24 Apr 2002 12:49:41 -0400 Original-Received: from alcor.twinsun.com ([198.147.65.9]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 170PvT-00080j-00 for ; Wed, 24 Apr 2002 12:47:27 -0400 Original-Received: from shade.twinsun.com ([192.54.239.27]) by alcor.twinsun.com (8.12.1/8.12.1) with ESMTP id g3OGlPPd005042; Wed, 24 Apr 2002 09:47:25 -0700 (PDT) Original-Received: (eggert@localhost) by shade.twinsun.com (8.11.6+Sun/8.11.6) id g3OGlP201100; Wed, 24 Apr 2002 09:47:25 -0700 (PDT) Original-To: himi@meadowy.org In-Reply-To: (himi@meadowy.org) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:3191 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3191 > From: MIYASHITA Hisashi(=?ISO-2022-JP?B?GyRCNVwyPBsoQiAbJEI+MBsoQjpISU1J?=) > > Date: Wed, 24 Apr 2002 19:30:35 +0900 > > I think that we MUST NOT use "PWD" environment variable to obtain > the current directory because it's never standardized. I'm not sure what you mean by "it's never standardized". PWD is part of the POSIX standard. It's true that one can have a problem when mixing POSIX and non-POSIX shells, since the latter don't update PWD and this can cause PWD to become incorrect; but this is becoming less of an issue with time, and anyway Emacs does have a workaround for it. It appears that people who use a POSIX-like environment in Windows are likely to run into this issue, so the Windows port should act as much as possible like a standard POSIX port. I like the idea of fixing w32.c `stat' so that it returns a reasonable inode for directories; that will fix the problem in general, not just here.