From: Michael Albinus Date: Fri, 31 Aug 2012 11:11:06 +0000 (+0200) Subject: * eshell/esh-ext.el: Explain, why we suppress the check in X-Git-Tag: emacs-24.2.90~460 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7b2fbe3b46bf422f9fb9b21d001de58a4f904abd;p=emacs.git * eshell/esh-ext.el: Explain, why we suppress the check in `eshell-external-command'. --- diff --git a/lisp/eshell/esh-ext.el b/lisp/eshell/esh-ext.el index f9f9b1a558f..e48213c54d6 100644 --- a/lisp/eshell/esh-ext.el +++ b/lisp/eshell/esh-ext.el @@ -207,11 +207,12 @@ causing the user to wonder if anything's really going on..." (defun eshell-external-command (command args) "Insert output from an external COMMAND, using ARGS." (setq args (eshell-stringify-list (eshell-flatten-list args))) - ;; (if (file-remote-p default-directory) - ;; (eshell-remote-command command args)) (let ((interp (eshell-find-interpreter command - ;; Do not examine remote shell scripts. + ;; `eshell-find-interpreter' does not work correctly + ;; for Tramp file name syntax. But we don't need to + ;; know the interpreter in that case, therefore the + ;; check is suppressed. (or (and (stringp command) (file-remote-p command)) (file-remote-p default-directory))))) (cl-assert interp)