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:
parent
a248d53d08
commit
30104690c3
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue