From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Gary O'Sullivan" Newsgroups: gmane.emacs.bugs Subject: bug#24787: 25.1; eshell cd not changing directory on remote path (windows-nt) Date: Tue, 25 Oct 2016 00:03:28 +0100 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1477350820 19418 195.159.176.226 (24 Oct 2016 23:13:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 24 Oct 2016 23:13:40 +0000 (UTC) To: 24787@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 25 01:13:36 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1byoQX-00016A-FB for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Oct 2016 01:13:09 +0200 Original-Received: from localhost ([::1]:50704 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byoQZ-0008DS-Pz for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Oct 2016 19:13:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byoQS-0008DN-9i for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2016 19:13:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1byoQR-0002D3-0f for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2016 19:13:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40086) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1byoQQ-0002Cw-SE for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2016 19:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1byoQQ-0004Ll-IU for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2016 19:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Gary O'Sullivan" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Oct 2016 23:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24787 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.147735073716668 (code B ref -1); Mon, 24 Oct 2016 23:13:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Oct 2016 23:12:17 +0000 Original-Received: from localhost ([127.0.0.1]:55484 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byoPg-0004Kl-PW for submit@debbugs.gnu.org; Mon, 24 Oct 2016 19:12:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byoHM-00048U-DG for submit@debbugs.gnu.org; Mon, 24 Oct 2016 19:03:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1byoHG-0008EA-0V for submit@debbugs.gnu.org; Mon, 24 Oct 2016 19:03:35 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:49375) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1byoHF-0008E6-TE for submit@debbugs.gnu.org; Mon, 24 Oct 2016 19:03:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1byoHE-0005jk-4n for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2016 19:03:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1byoHC-0008Bv-K9 for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2016 19:03:32 -0400 Original-Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:37836) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1byoHC-0008B0-8n for bug-gnu-emacs@gnu.org; Mon, 24 Oct 2016 19:03:30 -0400 Original-Received: by mail-wm0-x22b.google.com with SMTP id d199so14663080wmd.0 for ; Mon, 24 Oct 2016 16:03:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=qE6alsxI5BKX7FYmDC29Cglj9tXEECVvFiddVCD+vyo=; b=tqoLh0NDAhoodaFuscRCypZ2JBrvdyb7n0wy+5SyVoEh9ogN/XLtSC5zZ252RV7hKq sZEuQ0EdX6gcr2ORI2cXrH6QCNcCMAuckoGihN4Ra0Cx11FDZMtq+D8qt3DW5gKekgik /uY9DEmL/A9XwalaZ+3gNN3OBnVMD0XHnOEUAQrVcbrefIAeVzLL5qtIK4x7jrPsQs9t Clej0hCDo6mQvzUTRxbK9aDHy+kIHeJelTu410oW39sw3OtnzNmyQ/366l17HCZB97Gi U3F5mZRNSXk42wQcnYdTGKxg8+ZJuyzaW/rJtUa+cUhenvQgcGTbwPSrlicexgy4AQB8 WuRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=qE6alsxI5BKX7FYmDC29Cglj9tXEECVvFiddVCD+vyo=; b=S15n245Y2Aa7NW9I8zvobbAtjGu8DIkK3KxeW4tpmJJ7Dqym7TFzpJ48Jc1i4ECAd6 9+SzS8nVIYb5XCxLxuHBsVb5GQPsJzA54pvU23kQ5QFGlDOcQ1qaRjB+MGPD+ThogwEK mvF6X+Y8XaL9sTwKLHXi8z42TRda9GfgVeFAtJRIwQI/X2mwQyorBCyynTY4f5L2DbhX Xvw/EF+TWfDfmmI++ufqRbW2mZq/IwWedizxuFy0ziin291hLnWA39enxC76VBea1RJL 3yLwDzeMtzbCz0dogzlfgN776evFiF2IkZI5VyM9q8pREdnO/aN1zdGaQchdBzUV9Liw UKcw== X-Gm-Message-State: ABUngvdRTGUizw0f5+XccXSfHG86tDAySzKBvlCus2JcM0ilXCP7hI3Z8S3u0WSn3FEPWdzUJpU659l+6ZBmLA== X-Received: by 10.28.1.83 with SMTP id 80mr100194wmb.31.1477350208481; Mon, 24 Oct 2016 16:03:28 -0700 (PDT) Original-Received: by 10.80.150.6 with HTTP; Mon, 24 Oct 2016 16:03:28 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Mon, 24 Oct 2016 19:12:15 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:124979 Archived-At: On Windows I can change remote directories in eshell via absolute paths but using relative paths return an error message "No such directory found via CDPATH environment variable". Run runemacs.exe -Q M-x eshell Welcome to the Emacs shell c:/software/emacs/bin $ cd /plink:mysrv:/ /plink:mysrv:/home/gary/ $ cd etc No such directory found via CDPATH environment variable /plink:mysrv:/home/gary/ $ cd /plink:mysrv:/etc /plink:mysrv:/etc $ If I M-x toggle-debug-on-error I get the following backtrace: Debugger entered--Lisp error: (error "No such directory found via CDPATH environment variable") signal(error ("No such directory found via CDPATH environment variable")) error("No such directory found via CDPATH environment variable") cd("etc") eshell/cd("etc") apply(eshell/cd "etc") eshell-exec-lisp(eshell-print eshell-error eshell/cd ("etc") nil) eshell-lisp-command(eshell/cd ("etc")) eshell-plain-command("cd" ("etc")) eshell-named-command("cd" ("etc")) (prog1 (eshell-named-command "cd" (list "etc")) (run-hooks (quote eshell-this-command-hook))) (condition-case err (prog1 (eshell-named-command "cd" (list "etc")) (run-hooks (quote eshell-this-command-hook))) ((debug error) (run-hooks (quote eshell-this-command-hook)) (eshell-errorn (error-message-string err)) (eshell-close-handles 1))) (condition-case-unless-debug err (prog1 (eshell-named-command "cd" (list "etc")) (run-hooks (quote eshell-this-command-hook))) (error (run-hooks (quote eshell-this-command-hook)) (eshell-errorn (error-message-string err)) (eshell-close-handles 1))) (eshell-condition-case err (prog1 (eshell-named-command "cd" (list "etc")) (run-hooks (quote eshell-this-command-hook))) (error (run-hooks (quote eshell-this-command-hook)) (eshell-errorn (error-message-string err)) (eshell-close-handles 1))) (let ((eshell-this-command-hook (quote (ignore)))) (eshell-condition-case err (prog1 (eshell-named-command "cd" (list "etc")) (run-hooks (quote eshell-this-command-hook))) (error (run-hooks (quote eshell-this-command-hook)) (eshell-errorn (error-message-string err)) (eshell-close-handles 1)))) (eshell-trap-errors (eshell-named-command "cd" (list "etc"))) (progn (eshell-trap-errors (eshell-named-command "cd" (list "etc")))) (catch (quote top-level) (progn (eshell-trap-errors (eshell-named-command "cd" (list "etc"))))) (progn (run-hooks (quote eshell-pre-command-hook)) (catch (quote top-level) (progn (eshell-trap-errors (eshell-named-command "cd" (list "etc"))))) (run-hooks (quote eshell-post-command-hook))) (let ((eshell-current-handles (eshell-create-handles t (quote append))) eshell-current-subjob-p) (progn (run-hooks (quote eshell-pre-command-hook)) (catch (quote top-level) (progn (eshell-trap-errors (eshell-named-command "cd" (list "etc"))))) (run-hooks (quote eshell-post-command-hook)))) (eshell-commands (progn (run-hooks (quote eshell-pre-command-hook)) (catch (quote top-level) (progn (eshell-trap-errors (eshell-named-command "cd" (list "etc"))))) (run-hooks (quote eshell-post-command-hook)))) eval((eshell-commands (progn (run-hooks (quote eshell-pre-command-hook)) (catch (quote top-level) (progn (eshell-trap-errors (eshell-named-command "cd" (list "etc"))))) (run-hooks (quote eshell-post-command-hook))))) eshell-send-input(nil) funcall-interactively(eshell-send-input nil) call-interactively(eshell-send-input nil nil) command-execute(eshell-send-input) I get the same error message if I try the following from the *scratch* buffer: (cd "/plink:mysrv:/") ; --> "/plink:mysrv:/" (cd "etc") ; --> (error "No such directory found via CDPATH environment variable") (getenv "CDPATH") ; --> nil If I change the error message in the cd function (files.el) to look like the following (error "No such directory '%s' found via CDPATH environment variable '%s'" dir cd-path) then it returns No such directory =E2=80=99etc=E2=80=99 found via CDPATH environment variab= le =E2=80=99(./)=E2=80=99" expand-file-name returns a path beginning with "c:" if the second arg is "./" . default-directory ; --> "/plink:mysrv:/" (expand-file-name "etc") ; --> "/plink:mysrv:/etc" (expand-file-name "etc" default-directory) ; --> "/plink:mysrv:/etc" (expand-file-name "etc" "./") ; --> "c:/plink:mysrv:/etc" Regards, Gary O'Sullivan In GNU Emacs 25.1.1 (i686-w64-mingw32) of 2016-09-17 built on LAPHROAIG Windowing system distributor 'Microsoft Corp.', version 6.1.7601 Configured using: 'configure --host=3Di686-w64-mingw32 --without-dbus --without-compress-install CFLAGS=3D-static' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS Important settings: value of $LANG: ENI locale-coding-system: cp1252 Major mode: EShell Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Checking for load-path shadows...done You can run the command =E2=80=98report-emacs-bug=E2=80=99 with M-x r-em RE= T Checking for load-path shadows...done Auto-saving... previous-line: Beginning of buffer [4 times] Quit Making completion list... Type "q" in help window to restore its previous buffer, C-M-v to scroll hel= p. previous-line: Beginning of buffer [7 times] Auto-saving...done previous-line: Beginning of buffer Load-path shadows: None found. Features: (pp shadow sort mail-extr emacsbug message dired rfc822 mml mml-sec epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils eieio-opt speedbar sb-image ezimage dframe find-func debug browse-url misearch multi-isearch goto-addr thingatpt noutline outline easy-mmode view info tramp-cache tramp-sh tramp tramp-compat auth-source cl-seq eieio byte-opt bytecomp byte-compile cl-extra cconv eieio-core cl-macs gv gnus-util mm-util help-fns help-mode mail-prsvr password-cache tramp-loaddefs trampver ucs-normalize shell format-spec advice em-unix em-term term easymenu ehelp em-script em-prompt em-ls cl-loaddefs pcase cl-lib em-hist em-pred em-glob em-dirs em-cmpl em-basic em-banner em-alias pcomplete comint ansi-color ring esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-mode esh-util time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote w32notify w32 multi-tty make-network-process emacs) Memory information: ((conses 8 284646 29342) (symbols 32 25672 0) (miscs 32 136 657) (strings 16 40747 7070) (string-bytes 1 1129305) (vectors 8 41992) (vector-slots 4 796865 14244) (floats 8 308 374) (intervals 28 5839 89) (buffers 520 27))