aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Wiegley2002-02-16 06:43:43 +0000
committerJohn Wiegley2002-02-16 06:43:43 +0000
commitd166533684bacca692c11c3d8f26eb8274779679 (patch)
tree0b9e271bbbd994fd8271f1ac4adf6c67ccfb6102
parentc0c16d4501c5cba072e896a909eac33bf0937f84 (diff)
downloademacs-d166533684bacca692c11c3d8f26eb8274779679.tar.gz
emacs-d166533684bacca692c11c3d8f26eb8274779679.zip
(eshell-external-command): Added a fix for XEmacs' new dired.el, which
adds a global entry in the `file-name-handler-alist'. (eshell-script-interpreter): Allow whitespace after the #! of a shell interpretor specification.
-rw-r--r--lisp/eshell/esh-ext.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/eshell/esh-ext.el b/lisp/eshell/esh-ext.el
index 691bbe6334d..6f8c5e0c7c8 100644
--- a/lisp/eshell/esh-ext.el
+++ b/lisp/eshell/esh-ext.el
@@ -212,7 +212,9 @@ causing the user to wonder if anything's really going on..."
212 default-directory))) 212 default-directory)))
213 (find-file-name-handler default-directory 213 (find-file-name-handler default-directory
214 'shell-command)))) 214 'shell-command))))
215 (if handler 215 (if (and handler
216 (not (and (eshell-under-xemacs-p)
217 (eq handler 'dired-handler-fn))))
216 (eshell-remote-command handler command args)) 218 (eshell-remote-command handler command args))
217 (let ((interp (eshell-find-interpreter command))) 219 (let ((interp (eshell-find-interpreter command)))
218 (assert interp) 220 (assert interp)
@@ -258,7 +260,7 @@ Return nil, or a list of the form:
258 (file-regular-p file)) 260 (file-regular-p file))
259 (with-temp-buffer 261 (with-temp-buffer
260 (insert-file-contents-literally file nil 0 maxlen) 262 (insert-file-contents-literally file nil 0 maxlen)
261 (if (looking-at "#!\\([^ \t\n]+\\)\\([ \t]+\\(.+\\)\\)?") 263 (if (looking-at "#![ \t]*\\([^ \t\n]+\\)\\([ \t]+\\(.+\\)\\)?")
262 (if (match-string 3) 264 (if (match-string 3)
263 (list (match-string 1) 265 (list (match-string 1)
264 (match-string 3) 266 (match-string 3)