From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rekado Newsgroups: gmane.emacs.bugs Subject: bug#18782: 24.3; Eshell constructs bad path when executing script in current directory on remote host Date: Tue, 21 Oct 2014 10:40:48 +0200 Message-ID: <87a94pak9i.fsf@elephly.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1413884907 23727 80.91.229.3 (21 Oct 2014 09:48:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Oct 2014 09:48:27 +0000 (UTC) To: 18782@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 21 11:48:21 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XgW3A-00015U-Os for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Oct 2014 11:48:20 +0200 Original-Received: from localhost ([::1]:49219 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgW38-0003Ch-46 for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Oct 2014 05:48:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgW2y-0003Bt-Rc for bug-gnu-emacs@gnu.org; Tue, 21 Oct 2014 05:48:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgW2s-00016Q-KG for bug-gnu-emacs@gnu.org; Tue, 21 Oct 2014 05:48:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37461) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgW2s-00016M-HY for bug-gnu-emacs@gnu.org; Tue, 21 Oct 2014 05:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XgW2r-000341-Tk for bug-gnu-emacs@gnu.org; Tue, 21 Oct 2014 05:48:02 -0400 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.141388486711748 (code B ref -1); Tue, 21 Oct 2014 09:48:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Oct 2014 09:47:47 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) 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-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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:94855 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)