all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: rekado <rekado@elephly.net>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: 18782@debbugs.gnu.org
Subject: bug#18782: 24.3; Eshell constructs bad path when executing script in current directory on remote host
Date: Tue, 23 Dec 2014 18:53:30 +0100	[thread overview]
Message-ID: <87zjae6yn9.fsf@mango.localdomain> (raw)
In-Reply-To: <87bnmzh9zy.fsf@gmx.de>

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






  reply	other threads:[~2014-12-23 17:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-21  8:40 bug#18782: 24.3; Eshell constructs bad path when executing script in current directory on remote host rekado
2014-12-19 16:36 ` Michael Albinus
2014-12-23 17:53   ` rekado [this message]
2014-12-24  8:55     ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zjae6yn9.fsf@mango.localdomain \
    --to=rekado@elephly.net \
    --cc=18782@debbugs.gnu.org \
    --cc=michael.albinus@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.