mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-03 12:31:32 -08:00
(read1): After #!, exit loop on eof.
This commit is contained in:
parent
194600a8fa
commit
225c7a0732
2 changed files with 5 additions and 1 deletions
|
|
@ -1,3 +1,7 @@
|
|||
2003-03-14 Richard M. Stallman <rms@gnu.org>
|
||||
|
||||
* lread.c (read1): After #!, exit loop on eof.
|
||||
|
||||
2003-03-14 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
|
||||
|
||||
* gtkutil.h: Add declaration for xg_frame_cleared.
|
||||
|
|
|
|||
|
|
@ -2127,7 +2127,7 @@ read1 (readcharfun, pch, first_in_list)
|
|||
{
|
||||
/* #! appears at the beginning of an executable file.
|
||||
Skip the first line. */
|
||||
while (c != '\n')
|
||||
while (c != '\n' && c >= 0)
|
||||
c = READCHAR;
|
||||
goto retry;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue