Commit 30104690 authored by John Wiegley's avatar John Wiegley
Browse files

(eshell-script-interpreter): Fix for CRLF operating systems to the

regexp used to detect a script's interpretor.
parent a248d53d
......@@ -257,7 +257,7 @@ Return nil, or a list of the form:
(file-regular-p file))
(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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment