🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #848

EOF bug in bash-1.02

#848
From: David Newall
Date: Thu, 18 Jan 1990 20:58
29 lines
1233 bytes
DESCRIPTION:
	Bash core dumps when EOF (Control/D) is entered

REPEAT BY:
	bash$ ^D

FIX:
	Apply the following patch

*** parse.y	Thu Jan 18 14:56:33 1990
--- parse.y.orig	Thu Jan 18 15:03:12 1990
***************
*** 428,434 ****
  	current_readline_line = readline ("");
        else
  	current_readline_line = readline (current_readline_prompt);
-       if (current_readline_line == (char *) EOF) return(EOF);
  
        current_readline_line_index = 0;
        current_readline_line =
--- 428,433 ----


David Newall                     Phone:   +61 8 343 3160
Unix Systems Programmer          Fax:     +61 8 349 6939
Academic Computing Service       E-mail:  ccdn@levels.sait.oz{.au}
SA Institute of Technology       UUCP:    uunet!munnari!pisa.sait.oz!ccdn
The Levels, SA, 5095, Australia  VAX PSI: 505282622004::ccdn
Technical Details
Message-ID: <9001180429.AA05543@PISA.sait.oz>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!PISA.sait.oz.au!ccdn

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!PISA.sait.oz.au!ccdn
From: ccdn@PISA.sait.oz.au (David Newall)
Newsgroups: gnu.bash.bug
Subject: EOF bug in bash-1.02
Message-ID: <9001180429.AA05543@PISA.sait.oz>
Date: 18 Jan 90 20:58:57 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 29