From unknown Sat Aug 16 23:50:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18782: 24.3; Eshell constructs bad path when executing script in current directory on remote host Resent-From: rekado Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Oct 2014 09:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18782 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 18782@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.141388486711748 (code B ref -1); Tue, 21 Oct 2014 09:48:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 Oct 2014 09:47:47 +0000 Received: from localhost ([127.0.0.1]:57792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XgW2b-00033N-5F for submit@debbugs.gnu.org; Tue, 21 Oct 2014 05:47:46 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53446) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XgV0L-0001NP-SM for submit@debbugs.gnu.org; Tue, 21 Oct 2014 04:41:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgV0A-000313-Fa for submit@debbugs.gnu.org; Tue, 21 Oct 2014 04:41:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgV0A-00030z-Cq for submit@debbugs.gnu.org; Tue, 21 Oct 2014 04:41:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgV04-0000Wx-Lk for bug-gnu-emacs@gnu.org; Tue, 21 Oct 2014 04:41:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgUzy-0002zh-Ve for bug-gnu-emacs@gnu.org; Tue, 21 Oct 2014 04:41:04 -0400 Received: from sender1.zohomail.com ([74.201.84.155]:30693) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgUzy-0002zN-K8 for bug-gnu-emacs@gnu.org; Tue, 21 Oct 2014 04:40:58 -0400 Received: from localhost (141.80.150.72 [141.80.150.72]) by mx.zohomail.com with SMTPS id 1413880853259848.9753595254117; Tue, 21 Oct 2014 01:40:53 -0700 (PDT) From: rekado Message-ID: <87a94pak9i.fsf@elephly.net> Date: Tue, 21 Oct 2014 10:40:48 +0200 MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External X-Zoho-Virus-Status: 2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Mailman-Approved-At: Tue, 21 Oct 2014 05:47:43 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) I often use Eshell to connect to remote systems. On those remote systems I sometimes want to run scripts in the current directory. In a regular terminal I'd do this: localhost:~ $ ssh remote remote:~ $ ./my-script.sh Hello World remote:~ $ In Eshell this does not work: ~ $ cd /remote:~ /ssh:remote:/home/rekado $ ./my-script.sh env: /ssh:remote:/home/rekado/my-script.sh: No such file or directory /ssh:remote:/home/rekado $ It only works if I provide the complete TRAMP path to the script: /ssh:remote:/home/rekado $ /ssh:remote:/home/rekado/my-script.sh Hello World /ssh:remote:/home/rekado $ I'm not sure if this is a problem with TRAMP or eshell (or with the way I use them). ~~~ In GNU Emacs 24.3.1 (i686-redhat-linux-gnu, GTK+ Version 3.10.9) of 2014-09-30 on buildhw-01.phx2.fedoraproject.org Windowing system distributor `Fedora Project', version 11.0.11404000 Configured using: `configure '--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=gtk3' '--with-gpm=no' 'build_alias=i686-redhat-linux-gnu' 'host_alias=i686-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables' 'LDFLAGS=-Wl,-z,relro '' Important settings: value of $LC_MONETARY: en_US.utf8 value of $LC_NUMERIC: en_US.utf8 value of $LC_TIME: en_US.utf8 value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix default enable-multibyte-characters: t Minor modes in effect: display-time-mode: t shell-switcher-mode: t magit-auto-revert-mode: t diff-auto-refine-mode: t my-global-centered-cursor-mode: t centered-cursor-mode: t desktop-save-mode: t global-whitespace-mode: t fullscreen-mode: t ido-yes-or-no-mode: t ido-ubiquitous-mode: t shell-dirtrack-mode: t global-paren-face-mode: t show-paren-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 Load-path shadows: ~/.emacs.d/custom hides /usr/share/emacs/24.3/lisp/custom Features: (shadow emacsbug hippie-exp woman man misearch multi-isearch em-unix em-term term ehelp electric em-script em-prompt em-ls em-hist em-pred em-glob em-dirs em-cmpl em-basic em-banner em-alias haskell-doc inf-haskell haskell-cabal haskell-utils haskell-decl-scan imenu haskell-indentation haskell-font-lock haskell-mode haskell-string haskell-sort-imports haskell-align-imports haskell-compat haskell-complete-module flymake etags dabbrev inf-ruby ruby-mode sql vc-git org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-exp ob-exp org-exp-blocks org-agenda org-info org-gnus org-docview org-bibtex bibtex org-bbdb org ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob org-compat org-macs ob-eval org-loaddefs find-func cal-menu calendar cal-loaddefs time linum page-break-lines shell-switcher rswitcher esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg eldoc esh-groups eshell esh-module esh-mode esh-util magit-key-mode magit view grep compile diff-mode autorevert git-rebase-mode thingatpt git-commit-mode server log-edit pcvs-util add-log god-mode mu4e mu4e-speedbar speedbar sb-image ezimage dframe mu4e-main mu4e-view epa derived epg epg-config browse-url mu4e-headers mu4e-compose mu4e-draft mu4e-actions rfc2368 smtpmail mu4e-mark mu4e-message html2text mu4e-proc mu4e-utils doc-view jka-compr image-mode mu4e-lists mu4e-about mu4e-vars message sendmail rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader hl-line cl mu4e-meta smex easy-mmode centered-cursor-mode re-builder desktop disp-table whitespace fullscreen-mode ido-yes-or-no ido-ubiquitous warnings tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv gnus-util mm-util mail-prsvr password-cache tramp-loaddefs shell pcomplete comint ansi-color ring help-mode dired+ image-dired format-spec image-file dired-x dired-aux dired visual-regexp-steroids visual-regexp smart-mode-line-respectful-theme rich-minority smart-mode-line mule-util spolsky-theme paren-face better-defaults ac-inf-ruby-autoloads ace-jump-mode-autoloads auctex-autoloads tex-site auto-complete-autoloads better-defaults-autoloads paren saveplace uniquify advice advice-preload ido centered-cursor-mode-autoloads dired+-autoloads dired-details-autoloads erc-hl-nicks-autoloads expand-region-autoloads fullscreen-mode-autoloads geiser-autoloads god-mode-autoloads haskell-mode-autoloads helm-autoloads htmlize-autoloads hungry-delete-autoloads ido-ubiquitous-autoloads ido-yes-or-no-autoloads idomenu-autoloads inf-ruby-autoloads magit-autoloads info easymenu git-rebase-mode-autoloads git-commit-mode-autoloads markdown-mode-autoloads multiple-cursors-autoloads page-break-lines-autoloads paredit-autoloads paren-face-autoloads popup-autoloads projectile-autoloads pkg-info-autoloads rect-mark-autoloads ruby-block-autoloads scss-mode-autoloads shell-switcher-autoloads edmacro kmacro skewer-mode-autoloads js2-mode-autoloads simple-httpd-autoloads smart-mode-line-autoloads rich-minority-autoloads smex-autoloads sublime-themes-autoloads undo-tree-autoloads visual-regexp-steroids-autoloads visual-regexp-autoloads web-mode-autoloads yasnippet-autoloads znc-autoloads cask help-fns cl-macs gv cask-bootstrap package-build json lisp-mnt shut-up epl git commander cl-lib f dash s ucs-normalize commander-autoloads epl-autoloads git-autoloads f-autoloads dash-autoloads package-build-autoloads s-autoloads shut-up-autoloads finder-inf package time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From unknown Sat Aug 16 23:50:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18782: 24.3; Eshell constructs bad path when executing script in current directory on remote host Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Dec 2014 16:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18782 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: rekado Cc: 18782@debbugs.gnu.org Received: via spool by 18782-submit@debbugs.gnu.org id=B18782.141900702422816 (code B ref 18782); Fri, 19 Dec 2014 16:38:02 +0000 Received: (at 18782) by debbugs.gnu.org; 19 Dec 2014 16:37:04 +0000 Received: from localhost ([127.0.0.1]:51682 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y20Y3-0005vw-Pn for submit@debbugs.gnu.org; Fri, 19 Dec 2014 11:37:04 -0500 Received: from mout.gmx.net ([212.227.15.15]:49732) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y20Y1-0005vV-BY for 18782@debbugs.gnu.org; Fri, 19 Dec 2014 11:37:02 -0500 Received: from detlef.gmx.de ([87.146.44.253]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MILxX-1Y3wM91PNX-004GEW; Fri, 19 Dec 2014 17:36:50 +0100 From: Michael Albinus References: <87a94pak9i.fsf@elephly.net> Date: Fri, 19 Dec 2014 17:36:49 +0100 In-Reply-To: <87a94pak9i.fsf@elephly.net> (rekado@elephly.net's message of "Tue, 21 Oct 2014 10:40:48 +0200") Message-ID: <87bnmzh9zy.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:RfHJmJm9Q/wJQR1kMQsmDLab8WAb9HkwDej8k+4dobKrl8Cp/Y9 SHDaSug9tvYJUhMfms2N31vFLq6zcv1f2ENMnEnR8HVPG/1bK0fMdOUv92wxBPQNDhAzmAg UstQK+73jX0xbUxXXfG8aC9slfOkszjoTkt61P6a4MZliWLMP3FvBFHlM1eqnYXZZ/V+JNE 2/UMVAEDdlRKjNu18ab/A== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) rekado writes: > In Eshell this does not work: > > ~ $ cd /remote:~ > /ssh:remote:/home/rekado $ ./my-script.sh > env: /ssh:remote:/home/rekado/my-script.sh: No such file or directory > /ssh:remote:/home/rekado $ I've debugged this problem. Looks like the following patch in eshell solves it: --8<---------------cut here---------------start------------->8--- *** /usr/local/src/emacs/lisp/eshell/esh-ext.el.~master~ 2014-12-19 17:33:32.333535651 +0100 --- /usr/local/src/emacs/lisp/eshell/esh-ext.el 2014-12-19 16:21:34.443196286 +0100 *************** *** 296,301 **** --- 296,306 ---- (let ((fullname (if (file-name-directory file) file (eshell-search-path file))) (suffixes eshell-binary-suffixes)) + (if (and fullname + (not (file-remote-p fullname)) + (file-remote-p default-directory)) + (setq fullname (expand-file-name + (concat "./" fullname) default-directory))) (if (and fullname (not (or eshell-force-execution (file-executable-p fullname)))) (while suffixes --8<---------------cut here---------------end--------------->8--- Could you, please, check? Best regards, Michael. From unknown Sat Aug 16 23:50:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18782: 24.3; Eshell constructs bad path when executing script in current directory on remote host Resent-From: rekado Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Dec 2014 17:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18782 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: 18782@debbugs.gnu.org Received: via spool by 18782-submit@debbugs.gnu.org id=B18782.141935722426127 (code B ref 18782); Tue, 23 Dec 2014 17:54:01 +0000 Received: (at 18782) by debbugs.gnu.org; 23 Dec 2014 17:53:44 +0000 Received: from localhost ([127.0.0.1]:55999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y3TeR-0006nK-KR for submit@debbugs.gnu.org; Tue, 23 Dec 2014 12:53:43 -0500 Received: from sender1.zohomail.com ([74.201.84.155]:29917) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y3TeP-0006nB-GU for 18782@debbugs.gnu.org; Tue, 23 Dec 2014 12:53:42 -0500 Received: from localhost (brln-d9ba6679.pool.mediaWays.net [217.186.102.121]) by mx.zohomail.com with SMTPS id 1419357214575441.9784250472752; Tue, 23 Dec 2014 09:53:34 -0800 (PST) References: <87a94pak9i.fsf@elephly.net> <87bnmzh9zy.fsf@gmx.de> From: rekado In-reply-to: <87bnmzh9zy.fsf@gmx.de> Date: Tue, 23 Dec 2014 18:53:30 +0100 Message-ID: <87zjae6yn9.fsf@mango.localdomain> MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External X-Zoho-Virus-Status: 2 X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) Michael Albinus writes: > I've debugged this problem. Looks like the following patch in eshell > solves it: > > --8<---------------cut here---------------start------------->8--- > *** /usr/local/src/emacs/lisp/eshell/esh-ext.el.~master~ 2014-12-19 17:33:32.333535651 +0100 > --- /usr/local/src/emacs/lisp/eshell/esh-ext.el 2014-12-19 16:21:34.443196286 +0100 > *************** > *** 296,301 **** > --- 296,306 ---- > (let ((fullname (if (file-name-directory file) file > (eshell-search-path file))) > (suffixes eshell-binary-suffixes)) > + (if (and fullname > + (not (file-remote-p fullname)) > + (file-remote-p default-directory)) > + (setq fullname (expand-file-name > + (concat "./" fullname) default-directory))) > (if (and fullname (not (or eshell-force-execution > (file-executable-p fullname)))) > (while suffixes > --8<---------------cut here---------------end--------------->8--- > > Could you, please, check? I tried this patch in Emacs 24.4 and it works for me. Thank you. -- rekado From unknown Sat Aug 16 23:50:27 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: rekado Subject: bug#18782: closed (Re: bug#18782: 24.3; Eshell constructs bad path when executing script in current directory on remote host) Message-ID: References: <87ppb9tok6.fsf@gmx.de> <87a94pak9i.fsf@elephly.net> X-Gnu-PR-Message: they-closed 18782 X-Gnu-PR-Package: emacs Reply-To: 18782@debbugs.gnu.org Date: Wed, 24 Dec 2014 08:56:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1419411362-25317-1" This is a multi-part message in MIME format... ------------=_1419411362-25317-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #18782: 24.3; Eshell constructs bad path when executing script in current d= irectory on remote host which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 18782@debbugs.gnu.org. --=20 18782: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D18782 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1419411362-25317-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 18782-done) by debbugs.gnu.org; 24 Dec 2014 08:55:10 +0000 Received: from localhost ([127.0.0.1]:56211 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y3hin-0006ZF-Uy for submit@debbugs.gnu.org; Wed, 24 Dec 2014 03:55:10 -0500 Received: from mout.gmx.net ([212.227.17.21]:56599) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y3hil-0006Z4-Nm for 18782-done@debbugs.gnu.org; Wed, 24 Dec 2014 03:55:08 -0500 Received: from detlef.gmx.de ([87.146.49.119]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MXZNq-1YQ7qu1gik-00WVIu; Wed, 24 Dec 2014 09:55:06 +0100 From: Michael Albinus To: rekado Subject: Re: bug#18782: 24.3; Eshell constructs bad path when executing script in current directory on remote host References: <87a94pak9i.fsf@elephly.net> <87bnmzh9zy.fsf@gmx.de> <87zjae6yn9.fsf@mango.localdomain> Date: Wed, 24 Dec 2014 09:55:05 +0100 In-Reply-To: <87zjae6yn9.fsf@mango.localdomain> (rekado@elephly.net's message of "Tue, 23 Dec 2014 18:53:30 +0100") Message-ID: <87ppb9tok6.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:EZdwrK36ydCSfmMApsWVCiJewU3+da6pkJuEgGeNCgI8wrWfnu6 /IkG4HXpmUmnBPwnQ9/T0GGz+/Z7tPC7zNzHFShmy+TvFP9aFV6Cnv7PF3JUGUNQxjIJOAg v++RoBbknJTq4qG3epiZnVrMp4oULQIU/jD5jhAHVaJvLWf0cnjsNwDOOuXA38l0wg/Su8a /FJWOmgWUvJgrnQv2c6Jw== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18782-done Cc: 18782-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Version: 25.1 rekado writes: > I tried this patch in Emacs 24.4 and it works for me. > Thank you. Thanks for confirmation. I've committed the patch to the trunk, closing the bug. > -- rekado Best regards, Michael. ------------=_1419411362-25317-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 21 Oct 2014 09:47:47 +0000 Received: from localhost ([127.0.0.1]:57792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XgW2b-00033N-5F for submit@debbugs.gnu.org; Tue, 21 Oct 2014 05:47:46 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53446) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XgV0L-0001NP-SM for submit@debbugs.gnu.org; Tue, 21 Oct 2014 04:41:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgV0A-000313-Fa for submit@debbugs.gnu.org; Tue, 21 Oct 2014 04:41:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgV0A-00030z-Cq for submit@debbugs.gnu.org; Tue, 21 Oct 2014 04:41:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgV04-0000Wx-Lk for bug-gnu-emacs@gnu.org; Tue, 21 Oct 2014 04:41:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgUzy-0002zh-Ve for bug-gnu-emacs@gnu.org; Tue, 21 Oct 2014 04:41:04 -0400 Received: from sender1.zohomail.com ([74.201.84.155]:30693) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgUzy-0002zN-K8 for bug-gnu-emacs@gnu.org; Tue, 21 Oct 2014 04:40:58 -0400 Received: from localhost (141.80.150.72 [141.80.150.72]) by mx.zohomail.com with SMTPS id 1413880853259848.9753595254117; Tue, 21 Oct 2014 01:40:53 -0700 (PDT) From: rekado To: bug-gnu-emacs@gnu.org Subject: 24.3; Eshell constructs bad path when executing script in current directory on remote host Message-ID: <87a94pak9i.fsf@elephly.net> Date: Tue, 21 Oct 2014 10:40:48 +0200 MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External X-Zoho-Virus-Status: 2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 21 Oct 2014 05:47:43 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) I often use Eshell to connect to remote systems. On those remote systems I sometimes want to run scripts in the current directory. In a regular terminal I'd do this: localhost:~ $ ssh remote remote:~ $ ./my-script.sh Hello World remote:~ $ In Eshell this does not work: ~ $ cd /remote:~ /ssh:remote:/home/rekado $ ./my-script.sh env: /ssh:remote:/home/rekado/my-script.sh: No such file or directory /ssh:remote:/home/rekado $ It only works if I provide the complete TRAMP path to the script: /ssh:remote:/home/rekado $ /ssh:remote:/home/rekado/my-script.sh Hello World /ssh:remote:/home/rekado $ I'm not sure if this is a problem with TRAMP or eshell (or with the way I use them). ~~~ In GNU Emacs 24.3.1 (i686-redhat-linux-gnu, GTK+ Version 3.10.9) of 2014-09-30 on buildhw-01.phx2.fedoraproject.org Windowing system distributor `Fedora Project', version 11.0.11404000 Configured using: `configure '--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=gtk3' '--with-gpm=no' 'build_alias=i686-redhat-linux-gnu' 'host_alias=i686-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables' 'LDFLAGS=-Wl,-z,relro '' Important settings: value of $LC_MONETARY: en_US.utf8 value of $LC_NUMERIC: en_US.utf8 value of $LC_TIME: en_US.utf8 value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix default enable-multibyte-characters: t Minor modes in effect: display-time-mode: t shell-switcher-mode: t magit-auto-revert-mode: t diff-auto-refine-mode: t my-global-centered-cursor-mode: t centered-cursor-mode: t desktop-save-mode: t global-whitespace-mode: t fullscreen-mode: t ido-yes-or-no-mode: t ido-ubiquitous-mode: t shell-dirtrack-mode: t global-paren-face-mode: t show-paren-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 Load-path shadows: ~/.emacs.d/custom hides /usr/share/emacs/24.3/lisp/custom Features: (shadow emacsbug hippie-exp woman man misearch multi-isearch em-unix em-term term ehelp electric em-script em-prompt em-ls em-hist em-pred em-glob em-dirs em-cmpl em-basic em-banner em-alias haskell-doc inf-haskell haskell-cabal haskell-utils haskell-decl-scan imenu haskell-indentation haskell-font-lock haskell-mode haskell-string haskell-sort-imports haskell-align-imports haskell-compat haskell-complete-module flymake etags dabbrev inf-ruby ruby-mode sql vc-git org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-exp ob-exp org-exp-blocks org-agenda org-info org-gnus org-docview org-bibtex bibtex org-bbdb org ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys org-pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob org-compat org-macs ob-eval org-loaddefs find-func cal-menu calendar cal-loaddefs time linum page-break-lines shell-switcher rswitcher esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg eldoc esh-groups eshell esh-module esh-mode esh-util magit-key-mode magit view grep compile diff-mode autorevert git-rebase-mode thingatpt git-commit-mode server log-edit pcvs-util add-log god-mode mu4e mu4e-speedbar speedbar sb-image ezimage dframe mu4e-main mu4e-view epa derived epg epg-config browse-url mu4e-headers mu4e-compose mu4e-draft mu4e-actions rfc2368 smtpmail mu4e-mark mu4e-message html2text mu4e-proc mu4e-utils doc-view jka-compr image-mode mu4e-lists mu4e-about mu4e-vars message sendmail rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader hl-line cl mu4e-meta smex easy-mmode centered-cursor-mode re-builder desktop disp-table whitespace fullscreen-mode ido-yes-or-no ido-ubiquitous warnings tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv gnus-util mm-util mail-prsvr password-cache tramp-loaddefs shell pcomplete comint ansi-color ring help-mode dired+ image-dired format-spec image-file dired-x dired-aux dired visual-regexp-steroids visual-regexp smart-mode-line-respectful-theme rich-minority smart-mode-line mule-util spolsky-theme paren-face better-defaults ac-inf-ruby-autoloads ace-jump-mode-autoloads auctex-autoloads tex-site auto-complete-autoloads better-defaults-autoloads paren saveplace uniquify advice advice-preload ido centered-cursor-mode-autoloads dired+-autoloads dired-details-autoloads erc-hl-nicks-autoloads expand-region-autoloads fullscreen-mode-autoloads geiser-autoloads god-mode-autoloads haskell-mode-autoloads helm-autoloads htmlize-autoloads hungry-delete-autoloads ido-ubiquitous-autoloads ido-yes-or-no-autoloads idomenu-autoloads inf-ruby-autoloads magit-autoloads info easymenu git-rebase-mode-autoloads git-commit-mode-autoloads markdown-mode-autoloads multiple-cursors-autoloads page-break-lines-autoloads paredit-autoloads paren-face-autoloads popup-autoloads projectile-autoloads pkg-info-autoloads rect-mark-autoloads ruby-block-autoloads scss-mode-autoloads shell-switcher-autoloads edmacro kmacro skewer-mode-autoloads js2-mode-autoloads simple-httpd-autoloads smart-mode-line-autoloads rich-minority-autoloads smex-autoloads sublime-themes-autoloads undo-tree-autoloads visual-regexp-steroids-autoloads visual-regexp-autoloads web-mode-autoloads yasnippet-autoloads znc-autoloads cask help-fns cl-macs gv cask-bootstrap package-build json lisp-mnt shut-up epl git commander cl-lib f dash s ucs-normalize commander-autoloads epl-autoloads git-autoloads f-autoloads dash-autoloads package-build-autoloads s-autoloads shut-up-autoloads finder-inf package time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) ------------=_1419411362-25317-1--