From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#26911: 25.2; eshell "cd .." doesn't work correctly with TRAMP Date: Mon, 31 Aug 2020 21:56:29 +0300 Message-ID: <83imcywso2.fsf@gnu.org> References: <693aa189-03fa-b963-89eb-ce19c51ba325@cs.ucla.edu> <83wo1jz32t.fsf@gnu.org> <83sgc7z220.fsf@gnu.org> <83r1rryrk0.fsf@gnu.org> <47047d69-91aa-fd0d-1510-64ba7c246970@cs.ucla.edu> <83a6yeynd1.fsf@gnu.org> <03a31052-795a-c169-c199-2b0f3ba88ec2@cs.ucla.edu> <83sgc5xq8k.fsf@gnu.org> <164450fe-7f86-e336-87d4-13c52e52c61c@cs.ucla.edu> <83eenoxm18.fsf@gnu.org> <6acf8cfa-6071-e7b1-3055-04292634bb39@cs.ucla.edu> <83sgc2x3p2.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16549"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 26911@debbugs.gnu.org, mattiase@acm.org, michael.albinus@gmx.de, yegortimoshenko@gmail.com To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 31 20:58:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kCp0O-0004De-Tf for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 Aug 2020 20:58:12 +0200 Original-Received: from localhost ([::1]:44786 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kCp0N-0004db-PV for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 Aug 2020 14:58:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kCozG-0003XJ-R7 for bug-gnu-emacs@gnu.org; Mon, 31 Aug 2020 14:57:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42145) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kCozG-0000zC-Fx for bug-gnu-emacs@gnu.org; Mon, 31 Aug 2020 14:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kCozG-0000MR-Bv for bug-gnu-emacs@gnu.org; Mon, 31 Aug 2020 14:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 Aug 2020 18:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26911 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 26911-submit@debbugs.gnu.org id=B26911.15989002191378 (code B ref 26911); Mon, 31 Aug 2020 18:57:02 +0000 Original-Received: (at 26911) by debbugs.gnu.org; 31 Aug 2020 18:56:59 +0000 Original-Received: from localhost ([127.0.0.1]:53691 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kCozD-0000MA-0N for submit@debbugs.gnu.org; Mon, 31 Aug 2020 14:56:59 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kCoz8-0000Lv-Un for 26911@debbugs.gnu.org; Mon, 31 Aug 2020 14:56:57 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33418) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kCoz3-0000x1-4O; Mon, 31 Aug 2020 14:56:49 -0400 Original-Received: from [176.228.60.248] (port=4302 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kCoz1-00009B-4f; Mon, 31 Aug 2020 14:56:48 -0400 In-Reply-To: (message from Paul Eggert on Mon, 31 Aug 2020 11:15:35 -0700) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:186792 Archived-At: > Cc: 26911@debbugs.gnu.org, mattiase@acm.org, michael.albinus@gmx.de, > yegortimoshenko@gmail.com > From: Paul Eggert > Date: Mon, 31 Aug 2020 11:15:35 -0700 > > On 8/31/20 7:58 AM, Eli Zaretskii wrote: > > > expand-file-name deals only with the syntax of file names. > > Yes, but it does so under constraints imposed by semantics. This is why > expand-file-name can't simply remove *all* slashes from file names (which would > be just a "syntax" thing, no? :-). No, because a valid syntax of an absolute file name is to start with a slash. > > It is therefore perfectly valid for it to remove the trailing "/." > > without appending a slash. > > Not at all. We disagree. So any further argument is fruitless, because I will not change my mind on this. I'm pretty sure I'm right because this function never did anything different from what I describe, until very recently. > In many cases that would change the meaning of the file name, and > expand-file-name is not supposed to do that. Once again, the meaning of a file name is out of scope of expand-file-name's job. > Feel free to alter the code to fix these bugs in a different way. However, I > expect any such fix will be simpler if starts with the current code I intend to fix the specific bugs that were reported, and will try very hard not to alter any other behavior, but my baseline is how expand-file-name behaved before your changes, not how it behaves now (which is wrong).