1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

* eshell/esh-ext.el (eshell-external-command): Do not examine

remote shell scripts.  See
<https://bugs.launchpad.net/ubuntu/+source/emacs23/+bug/1035790>.

* net/tramp-sh.el (tramp-remote-path): Add "/sbin" and
"/usr/local/sbin".
This commit is contained in:
Michael Albinus 2012-08-29 14:49:44 +02:00
parent d5e2bcd351
commit c2c43c2382
3 changed files with 17 additions and 4 deletions

View file

@ -209,7 +209,11 @@ causing the user to wonder if anything's really going on..."
(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)))
(let ((interp (eshell-find-interpreter
command
;; Do not examine remote shell scripts.
(or (and (stringp command) (file-remote-p command))
(file-remote-p default-directory)))))
(cl-assert interp)
(if (functionp (car interp))
(apply (car interp) (append (cdr interp) args))