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: Fri, 28 Aug 2020 09:39:38 +0300 Message-ID: <83wo1jz32t.fsf@gnu.org> References: <693aa189-03fa-b963-89eb-ce19c51ba325@cs.ucla.edu> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19151"; 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 Fri Aug 28 08:40:10 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 1kBY3W-0004rG-6f for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 Aug 2020 08:40:10 +0200 Original-Received: from localhost ([::1]:58070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBY3V-0000oj-9T for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 Aug 2020 02:40:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41006) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBY3O-0000oT-DL for bug-gnu-emacs@gnu.org; Fri, 28 Aug 2020 02:40:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33401) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kBY3O-0001cS-2b for bug-gnu-emacs@gnu.org; Fri, 28 Aug 2020 02:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kBY3N-0001Vw-V0 for bug-gnu-emacs@gnu.org; Fri, 28 Aug 2020 02:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Aug 2020 06:40: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.15985967995806 (code B ref 26911); Fri, 28 Aug 2020 06:40:01 +0000 Original-Received: (at 26911) by debbugs.gnu.org; 28 Aug 2020 06:39:59 +0000 Original-Received: from localhost ([127.0.0.1]:44947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kBY3K-0001Va-Gc for submit@debbugs.gnu.org; Fri, 28 Aug 2020 02:39:58 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59106) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kBY3H-0001VJ-T4 for 26911@debbugs.gnu.org; Fri, 28 Aug 2020 02:39:56 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40886) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBY3B-0001cA-A7; Fri, 28 Aug 2020 02:39:49 -0400 Original-Received: from [176.228.60.248] (port=4391 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kBY3A-0003Lp-Ki; Fri, 28 Aug 2020 02:39:49 -0400 In-Reply-To: <693aa189-03fa-b963-89eb-ce19c51ba325@cs.ucla.edu> (message from Paul Eggert on Thu, 27 Aug 2020 14:53:52 -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:186582 Archived-At: > Cc: Michael Albinus , 26911@debbugs.gnu.org, > Eli Zaretskii , Yegor Timoshenko > From: Paul Eggert > Date: Thu, 27 Aug 2020 14:53:52 -0700 > > Thanks for reporting that. Sigh, too often when I fix one bug in > expand-file-name I introduce another. I installed the attached patch to fix this > bug (I and I hope it doesn't introduce yet another :-). Two tests (including the new one) fail here on MS-Windows: Test fileio-tests--HOME-trailing-slash backtrace: signal(ert-test-failed (((should (equal (expand-file-name "~") (expa ert-fail(((should (equal (expand-file-name "~") (expand-file-name ho (if (unwind-protect (setq value-197 (apply fn-195 args-196)) (setq f (let (form-description-199) (if (unwind-protect (setq value-197 (app (let ((value-197 'ert-form-evaluation-aborted-198)) (let (form-descr (let* ((fn-195 #'equal) (args-196 (condition-case err (let ((signal- (let ((home (car --dolist-tail--))) (setenv "HOME" home) (let* ((fn- (while --dolist-tail-- (let ((home (car --dolist-tail--))) (setenv " (let ((--dolist-tail-- '("/a/b/c" "/a/b/c/"))) (while --dolist-tail- (let ((old-home (getenv "HOME"))) (let ((--dolist-tail-- '("/a/b/c" (closure (t) nil (let ((old-home (getenv "HOME"))) (let ((--dolist-t ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test ert-run-test(#s(ert-test :name fileio-tests--HOME-trailing-slash :do ert-run-or-rerun-test(#s(ert--stats :selector (not ...) :tests [... ert-run-tests((not (tag :unstable)) #f(compiled-function (event-type ert-run-tests-batch((not (tag :unstable))) ert-run-tests-batch-and-exit((not (tag :unstable))) eval((ert-run-tests-batch-and-exit '(not (tag :unstable))) t) command-line-1(("-L" ";." "-l" "ert" "-l" "src/fileio-tests.el" "--e command-line() normal-top-level() Test fileio-tests--HOME-trailing-slash condition: (ert-test-failed ((should (equal (expand-file-name "~") (expand-file-name home))) :form (equal "d:/gnu/git/emacs/trunk/test/a/b/c/" "d:./a/b/c") :value nil :explanation (arrays-of-different-length 34 9 "d:/gnu/git/emacs/trunk/test/a/b/c/" "d:./a/b/c" first-mismatch-at 2))) FAILED 1/12 fileio-tests--HOME-trailing-slash (0.000000 sec) Test fileio-tests--expand-file-name-trailing-slash backtrace: signal(ert-test-failed (((should (equal (expand-file-name fooslashal ert-fail(((should (equal (expand-file-name fooslashalias "/") "/foo/ (if (unwind-protect (setq value-202 (apply fn-200 args-201)) (setq f (let (form-description-204) (if (unwind-protect (setq value-202 (app (let ((value-202 'ert-form-evaluation-aborted-203)) (let (form-descr (let* ((fn-200 #'equal) (args-201 (condition-case err (let ((signal- (let ((fooslashalias (car --dolist-tail--))) (let* ((fn-200 #'equal) (while --dolist-tail-- (let ((fooslashalias (car --dolist-tail--))) (let ((--dolist-tail-- '("foo/" "foo//" "foo/." "foo//." "foo///././ (closure (t) nil (let ((--dolist-tail-- '("foo/" "foo//" "foo/." "fo ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test ert-run-test(#s(ert-test :name fileio-tests--expand-file-name-traili ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m ert-run-tests((not (tag :unstable)) #f(compiled-function (event-type ert-run-tests-batch((not (tag :unstable))) ert-run-tests-batch-and-exit((not (tag :unstable))) eval((ert-run-tests-batch-and-exit '(not (tag :unstable))) t) command-line-1(("-L" ";." "-l" "ert" "-l" "src/fileio-tests.el" "--e command-line() normal-top-level() Test fileio-tests--expand-file-name-trailing-slash condition: (ert-test-failed ((should (equal (expand-file-name fooslashalias "/") "/foo/")) :form (equal "d:/foo/" "/foo/") :value nil :explanation (arrays-of-different-length 7 5 "d:/foo/" "/foo/" first-mismatch-at 0)))