1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

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

regexp used to detect a script's interpretor.
This commit is contained in:
John Wiegley 2002-04-12 20:11:06 +00:00
parent a248d53d08
commit 30104690c3

View file

@ -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)