mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
* eshell/esh-ext.el: Explain, why we suppress the check in
`eshell-external-command'.
This commit is contained in:
parent
c650a5dec6
commit
7b2fbe3b46
1 changed files with 4 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue