aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/eshell
diff options
context:
space:
mode:
authorMichael Albinus2012-08-29 14:49:44 +0200
committerMichael Albinus2012-08-29 14:49:44 +0200
commitc2c43c2382db292bfe3cccbccad4386f81f9c8a4 (patch)
tree623daaff9aea8598a9f23f7845bfdf38d5d4a905 /lisp/eshell
parentd5e2bcd3514bbf1a4e7022efd3b6555379d690a8 (diff)
downloademacs-c2c43c2382db292bfe3cccbccad4386f81f9c8a4.tar.gz
emacs-c2c43c2382db292bfe3cccbccad4386f81f9c8a4.zip
* 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".
Diffstat (limited to 'lisp/eshell')
-rw-r--r--lisp/eshell/esh-ext.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/eshell/esh-ext.el b/lisp/eshell/esh-ext.el
index 52df1587d5f..f9f9b1a558f 100644
--- a/lisp/eshell/esh-ext.el
+++ b/lisp/eshell/esh-ext.el
@@ -209,7 +209,11 @@ causing the user to wonder if anything's really going on..."
209 (setq args (eshell-stringify-list (eshell-flatten-list args))) 209 (setq args (eshell-stringify-list (eshell-flatten-list args)))
210 ;; (if (file-remote-p default-directory) 210 ;; (if (file-remote-p default-directory)
211 ;; (eshell-remote-command command args)) 211 ;; (eshell-remote-command command args))
212 (let ((interp (eshell-find-interpreter command))) 212 (let ((interp (eshell-find-interpreter
213 command
214 ;; Do not examine remote shell scripts.
215 (or (and (stringp command) (file-remote-p command))
216 (file-remote-p default-directory)))))
213 (cl-assert interp) 217 (cl-assert interp)
214 (if (functionp (car interp)) 218 (if (functionp (car interp))
215 (apply (car interp) (append (cdr interp) args)) 219 (apply (car interp) (append (cdr interp) args))