From 30104690c3e30aae247e9ad5605f1ad9a3d5b189 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 12 Apr 2002 20:11:06 +0000 Subject: [PATCH] (eshell-script-interpreter): Fix for CRLF operating systems to the regexp used to detect a script's interpretor. --- lisp/eshell/esh-ext.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5