From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= 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 14:53:07 +0000 Message-ID: References: <87ftv2ri0s.fsf@telefonica.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d17dec057cd45b9f" X-Trace: blaine.gmane.org 1544626285 18237 195.159.176.226 (12 Dec 2018 14:51:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 12 Dec 2018 14:51:25 +0000 (UTC) Cc: emacs-devel To: =?UTF-8?Q?=C3=93scar_Fuentes?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 12 15:51:21 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 1gX5r6-0004c3-Vu for ged-emacs-devel@m.gmane.org; Wed, 12 Dec 2018 15:51:21 +0100 Original-Received: from localhost ([::1]:45453 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gX5tD-0007gG-Oi for ged-emacs-devel@m.gmane.org; Wed, 12 Dec 2018 09:53:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gX5t2-0007e1-Kg for emacs-devel@gnu.org; Wed, 12 Dec 2018 09:53:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gX5t1-0002wK-LB for emacs-devel@gnu.org; Wed, 12 Dec 2018 09:53:20 -0500 Original-Received: from mail-qt1-x82f.google.com ([2607:f8b0:4864:20::82f]:40354) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gX5t1-0002wB-Ei for emacs-devel@gnu.org; Wed, 12 Dec 2018 09:53:19 -0500 Original-Received: by mail-qt1-x82f.google.com with SMTP id k12so20718670qtf.7 for ; Wed, 12 Dec 2018 06:53:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=INw5tA2sDCN4HuMEHo/A2WsEkjgQW7lZLra8jT+GqL8=; b=AGx/9+Mv8dUPyv2gOUl5XOK9rErbNnx7BRWQisk+k6v4GzGVxWxaITKrpE/RN74Qen g40zi3I+U6kjgYSerEm/CCxwlJwuJ2HtvAwchPetgZf6kw++fYrYCh77bLu7Q+LNWgOo 16isrWGjXCIDBT6STKcc8DSiDuubFO2m4IZjseZb1aBkGD1HAB6K7Ng5YlOwFtkZgkfZ rweYmYCrHmGMo0Kn1CkATAKcKGciTCA1A+jMrpPNn7c0ssYfU/SON7zH0L5OI53i+1Tj Bn29DVmaB31O4vq4S0G6wd4R/5+oTfdqyQkcvbcSA/PLjvVULBHtaF1puIEcPxuvzpYf T5mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=INw5tA2sDCN4HuMEHo/A2WsEkjgQW7lZLra8jT+GqL8=; b=knmoxtUxdLasmymdf5a+yT7T/glX7wBcxA7TLaKimCsepggOUWzt9JMTbI0VQgkral dq36/Ndq7AK2Eep66NwNaaDKT6YxApwEE8L3hw/ThLnMQo5iuEaW6C8fyVn98uQB2dmZ Q/IT1YvW/5zt3X/uH8UrNxMwSyWr62NWIX60RKbAuiPmBCLNcc8B/IPq8QcdCTUYJOFW KwO7muNrl6uwFh+Ed6692WIl8bb/Ln6cxW9rU+2YKkNf666ETj3oR1s3458+akU7bj0G lL93LLzm6k1YxbTK+MTHkG6mvCZrbhDCXLwUUO6SbShN+ENJsVaRjCjgV1vy13AfOuru fXSA== X-Gm-Message-State: AA+aEWaoOxxpWqOpHFzjJCm7wHLUAvA1CfiqVUMNNBhuOyO7eEXDui1C YpuOHdMh1ExRkSlZbGSgOGl22QNiGdT9x/jwjf4= X-Google-Smtp-Source: AFSGD/V5zBu5D6StwV/H30iYIA7E/S/idf4m+VDo4+klNsScWu79pgYBdZaJpW6SIbUyYg3YAv0prnD/hcWHkNtf7ZI= X-Received: by 2002:a0c:f9c3:: with SMTP id j3mr19630094qvo.107.1544626398918; Wed, 12 Dec 2018 06:53:18 -0800 (PST) In-Reply-To: <87ftv2ri0s.fsf@telefonica.net> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::82f 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:231778 Archived-At: --000000000000d17dec057cd45b9f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Dec 12, 2018 at 1:41 PM =C3=93scar Fuentes wrote: > "Jo=C3=A3o T=C3=A1vora" writes: > > > I've only now caught up with the discussion of bug#33255. Are the > > consequences of interpreting the string "c:" on Windows as a relative > > file name understood? > > > > With HOME=3D"z:", it used to be that (expand-file-name "~/blabla") > > returned "z:/blabla" but now it returns > > "z:/source/emacs/emacs/src/z:/blabla", which is not a valid Windows > > pathname. > > [snip] > > 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 > =C3=93scar, I get it that z:bla has a meaning. But is this meaning ever use= ful when for expanding "~/bla"? I didn't say the change was "wrong". I just asked, basically: * if anyone had contemplated this particular problem on Windows; * if it's possible to interpret HOME specially for this particular bit of backward compatibility without breaking the cases of bug#33255 Jo=C3=A3o T=C3=A1vora --000000000000d17dec057cd45b9f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Dec 12, 2018 at 1:41 PM =C3=93scar Fuentes <ofv@wanadoo.es> wro= te:
"Jo=C3= =A3o T=C3=A1vora" <joaotavora@gmail.com> writes:

> I've only now caught up with the discussion of bug#33255.=C2=A0 Ar= e the
> consequences of interpreting the string "c:" on Windows as a= relative
> file name understood?
>
> With HOME=3D"z:", it used to be that (expand-file-name "= ;~/blabla")
> returned "z:/blabla" but now it returns
> "z:/source/emacs/emacs/src/z:/blabla", which is not a valid = Windows
> pathname.

[snip]

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-u= s/dotnet/standard/io/file-path-formats

<= div>=C3=93scar, I get it that z:bla has a meaning. But is this meaning ever= useful when for expanding "~/bla"?

I didn't say the change was "wrong".=C2=A0 I just asked, basically:

* if anyone had conte= mplated this particular problem on Windows;
* if it's pos= sible to interpret HOME specially for this particular bit of backward compa= tibility without breaking the cases of bug#33255

<= /div>Jo=C3=A3o T=C3=A1vora
--000000000000d17dec057cd45b9f--