GNU bug report logs -
#18782
24.3; Eshell constructs bad path when executing script in current directory on remote host
Previous Next
Reported by: rekado <rekado <at> elephly.net>
Date: Tue, 21 Oct 2014 09:48:01 UTC
Severity: normal
Found in version 24.3
Fixed in version 25.1
Done: Michael Albinus <michael.albinus <at> gmx.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
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
This bug report was last modified 10 years and 206 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.