Mercurial > emacs
diff lisp/eshell/esh-ext.el @ 44553:536e5590a586
(eshell-script-interpreter): Fix for CRLF operating systems to the
regexp used to detect a script's interpretor.
author | John Wiegley <johnw@newartisans.com> |
---|---|
date | Fri, 12 Apr 2002 20:11:06 +0000 |
parents | a27b6cb6448d |
children | acd6b7b35363 |
line wrap: on
line diff
--- a/lisp/eshell/esh-ext.el Fri Apr 12 20:10:46 2002 +0000 +++ b/lisp/eshell/esh-ext.el Fri Apr 12 20:11:06 2002 +0000 @@ -257,7 +257,7 @@ (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)