From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: 900276502f..: Paul Eggert 2018-11-13 Act like POSIX sh if $HOME is relative Date: Wed, 12 Dec 2018 18:30:02 +0200 Message-ID: <831s6m1zed.fsf@gnu.org> References: <87ftv2ri0s.fsf@telefonica.net> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1544632104 23091 195.159.176.226 (12 Dec 2018 16:28:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 12 Dec 2018 16:28:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 12 17:28:20 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gX7Mx-0005uI-HX for ged-emacs-devel@m.gmane.org; Wed, 12 Dec 2018 17:28:19 +0100 Original-Received: from localhost ([::1]:46018 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gX7P3-0000kj-QA for ged-emacs-devel@m.gmane.org; Wed, 12 Dec 2018 11:30:29 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gX7Ot-0000kb-KE for emacs-devel@gnu.org; Wed, 12 Dec 2018 11:30:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gX7Ol-0006gv-Nm for emacs-devel@gnu.org; Wed, 12 Dec 2018 11:30:17 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37720) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gX7Oj-0006cR-Li; Wed, 12 Dec 2018 11:30:11 -0500 Original-Received: from [176.228.60.248] (port=2483 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gX7Oi-0001hR-Jo; Wed, 12 Dec 2018 11:30:09 -0500 In-reply-to: (message from Stefan Monnier on Wed, 12 Dec 2018 10:16:14 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:231787 Archived-At: > From: Stefan Monnier > Date: Wed, 12 Dec 2018 10:16:14 -0500 > > > I was about to post a reply but Yuri already answered, so I'll only add > > a pointer to an official reference about this topic: > > https://docs.microsoft.com/en-us/dotnet/standard/io/file-path-formats > > Emacs only has `default-directory` to keep track of the "current > directory" so it has no notion of having a different "current directory" > on every "drive". Emacs doesn't, but some systems do. > So I think a $HOME of "z:" should be converted early on to > "z:/" and after that, "p:" can only be interpreted by Emacs > as "p:/" That's what Emacs was always doing on Windows, but not on DOS. I see no reason to change this behavior, it doesn't contradict the changes we did for the HOME directory being a relative file name.