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: Sun, 30 Aug 2020 17:14:46 +0300 Message-ID: <83d038xlt5.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> <87eenp75hi.fsf@gmx.de> <83r1rpxq4d.fsf@gnu.org> <87tuwl5krl.fsf@gmx.de> <83h7slxn92.fsf@gnu.org> <87pn785uuq.fsf@gmx.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2562"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 26911@debbugs.gnu.org, mattiase@acm.org, eggert@cs.ucla.edu, yegortimoshenko@gmail.com To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 30 16:15:09 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 1kCO6v-0000Yz-2t for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 30 Aug 2020 16:15:09 +0200 Original-Received: from localhost ([::1]:44170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kCO6u-00020y-69 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 30 Aug 2020 10:15:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44598) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kCO6o-00020r-Hh for bug-gnu-emacs@gnu.org; Sun, 30 Aug 2020 10:15:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38914) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kCO6o-0005Vm-8P for bug-gnu-emacs@gnu.org; Sun, 30 Aug 2020 10:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kCO6o-0003y2-3S for bug-gnu-emacs@gnu.org; Sun, 30 Aug 2020 10:15: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: Sun, 30 Aug 2020 14:15:01 +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.159879689915231 (code B ref 26911); Sun, 30 Aug 2020 14:15:01 +0000 Original-Received: (at 26911) by debbugs.gnu.org; 30 Aug 2020 14:14:59 +0000 Original-Received: from localhost ([127.0.0.1]:50460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kCO6k-0003xa-K4 for submit@debbugs.gnu.org; Sun, 30 Aug 2020 10:14:59 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kCO6i-0003xO-Su for 26911@debbugs.gnu.org; Sun, 30 Aug 2020 10:14:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40160) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kCO6d-0005UT-DW; Sun, 30 Aug 2020 10:14:51 -0400 Original-Received: from [176.228.60.248] (port=2029 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kCO6c-0008N7-MM; Sun, 30 Aug 2020 10:14:51 -0400 In-Reply-To: <87pn785uuq.fsf@gmx.de> (message from Michael Albinus on Sun, 30 Aug 2020 11:46:53 +0200) 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:186695 Archived-At: > From: Michael Albinus > Cc: eggert@cs.ucla.edu, 26911@debbugs.gnu.org, mattiase@acm.org, > yegortimoshenko@gmail.com > Date: Sun, 30 Aug 2020 11:46:53 +0200 > > > Test tramp-test05-expand-file-name condition: > > (ert-test-failed > > ((should > > (string-equal > > (expand-file-name "/method:host:/path/.") > > (if ... "/method:host:/path/" "/method:host:/path"))) > > :form > > (string-equal "/method:host:/path" "/method:host:/path/") > > :value nil)) > > FAILED 12/70 tramp-test05-expand-file-name (0.000000 sec) > > This is as expected, thanks. > > I'm a little bit undecided whether I do special-case the test for > running on MS Windows, or whether I wait that it will be fixed. WDYT? IMO, special-casing a test is only a good idea if that is done for reasons unrelated to the behavior being tested. It makes no sense to me to special-case a test in order to make failure look like success. It's a slippery slope: once we go that way, before long we will have to special-case real code, where the problematic behavior matters. There's no real reason to special-case Windows in this case, because its behavior doesn't really differ that much from Posix. There's a small difference in syntax, but the concepts are all the same. We should fix this, not paper over it.