From: John Wiegley Date: Fri, 12 Apr 2002 20:11:06 +0000 (+0000) Subject: (eshell-script-interpreter): Fix for CRLF operating systems to the X-Git-Tag: ttn-vms-21-2-B4~15644 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=30104690c3e30aae247e9ad5605f1ad9a3d5b189;p=emacs.git (eshell-script-interpreter): Fix for CRLF operating systems to the regexp used to detect a script's interpretor. --- diff --git a/lisp/eshell/esh-ext.el b/lisp/eshell/esh-ext.el index af7c240044a..12edbdc7153 100644 --- a/lisp/eshell/esh-ext.el +++ b/lisp/eshell/esh-ext.el @@ -257,7 +257,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]*\\([^ \t\n]+\\)\\([ \t]+\\(.+\\)\\)?") + (if (looking-at "#![ \t]*\\([^ \r\t\n]+\\)\\([ \t]+\\(.+\\)\\)?") (if (match-string 3) (list (match-string 1) (match-string 3)