]> git.eshelyaron.com Git - emacs.git/commitdiff
* eshell/esh-ext.el (eshell-external-command): Do not examine
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 29 Aug 2012 12:49:44 +0000 (14:49 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 29 Aug 2012 12:49:44 +0000 (14:49 +0200)
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".

lisp/ChangeLog
lisp/eshell/esh-ext.el
lisp/net/tramp-sh.el

index 72eafdca6390c0a4bfdc2c978b8da030bc2e9943..bfca3f073f2f3b79e1650fda9404b4e8eb3342f7 100644 (file)
@@ -1,3 +1,12 @@
+2012-08-29  Michael Albinus  <michael.albinus@gmx.de>
+
+       * 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".
+
 2012-08-28  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * emacs-lisp/cl-lib.el (buffer-string): Fix setter macro (bug#12293).
index 52df1587d5f0449632a39ed7c58dd6fccb683289..f9f9b1a558f785cc03fd6e7a7da51764e61d2510 100644 (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))
index 6283188d46a0025c115a3bc016342b9558adc27d..2c1af3e83faa4f196c404bee13a74a845aa348f6 100644 (file)
@@ -512,9 +512,9 @@ detected as prompt when being sent on echoing hosts, therefore.")
 ;; IRIX64: /usr/bin
 ;;;###tramp-autoload
 (defcustom tramp-remote-path
-  '(tramp-default-remote-path "/bin" "/usr/bin" "/usr/sbin"
-    "/usr/local/bin" "/local/bin" "/local/freeware/bin" "/local/gnu/bin"
-    "/usr/freeware/bin" "/usr/pkg/bin" "/usr/contrib/bin"
+  '(tramp-default-remote-path "/bin" "/usr/bin" "/sbin" "/usr/sbin"
+    "/usr/local/bin" "/usr/local/sbin" "/local/bin" "/local/freeware/bin"
+    "/local/gnu/bin" "/usr/freeware/bin" "/usr/pkg/bin" "/usr/contrib/bin"
     "/opt/bin" "/opt/sbin" "/opt/local/bin")
   "List of directories to search for executables on remote host.
 For every remote host, this variable will be set buffer local,