]> git.eshelyaron.com Git - emacs.git/commitdiff
(eshell-external-command): Added a fix for XEmacs' new dired.el, which
authorJohn Wiegley <johnw@newartisans.com>
Sat, 16 Feb 2002 06:43:43 +0000 (06:43 +0000)
committerJohn Wiegley <johnw@newartisans.com>
Sat, 16 Feb 2002 06:43:43 +0000 (06:43 +0000)
adds a global entry in the `file-name-handler-alist'.
(eshell-script-interpreter): Allow whitespace after the #! of a shell
interpretor specification.

lisp/eshell/esh-ext.el

index 691bbe6334dba974a7ab8f27aaa7eba6b044273e..6f8c5e0c7c8ac88c704c5debc85c0eb807901074 100644 (file)
@@ -212,7 +212,9 @@ causing the user to wonder if anything's really going on..."
                                        default-directory)))
           (find-file-name-handler default-directory
                                   'shell-command))))
-    (if handler
+    (if (and handler
+            (not (and (eshell-under-xemacs-p)
+                      (eq handler 'dired-handler-fn))))
        (eshell-remote-command handler command args))
     (let ((interp (eshell-find-interpreter command)))
       (assert interp)
@@ -258,7 +260,7 @@ Return nil, or a list of the form:
             (file-regular-p file))
        (with-temp-buffer
          (insert-file-contents-literally file nil 0 maxlen)
-         (if (looking-at "#!\\([^ \t\n]+\\)\\([ \t]+\\(.+\\)\\)?")
+         (if (looking-at "#![ \t]*\\([^ \t\n]+\\)\\([ \t]+\\(.+\\)\\)?")
              (if (match-string 3)
                  (list (match-string 1)
                        (match-string 3)