doug@zaphod.prime.com (Douglas Rand) (07/25/89)
When I type ^D to the BASH shell I get a segmentation fault. BASH was built using BISON and GCC on a SUN3 running SUNOS4.0. Any thoughts? Doug
bfox@AUREL.CALTECH.EDU (Brian Fox) (07/25/89)
Date: Mon, 24 Jul 89 13:47:01 EDT From: doug@zaphod.prime.com (Douglas Rand) When I type ^D to the BASH shell I get a segmentation fault. BASH was built using BISON and GCC on a SUN3 running SUNOS4.0. Any thoughts? Doug *** parse.y.~2~ Sat Jul 8 13:23:24 1989 --- parse.y Mon Jul 10 09:16:44 1989 *************** *** 430,435 **** --- 430,443 ---- current_readline_line = readline (current_readline_prompt); current_readline_line_index = 0; + + if ((long) current_readline_line == (long) EOF) + { + current_readline_line = (char *) NULL; + current_readline_line_index = 0; + return (EOF); + } + current_readline_line = (char *)xrealloc (current_readline_line, 2 + strlen (current_readline_line));
doug@zaphod.prime.com (Douglas Rand) (07/25/89)
Thanks for the fast bug fix. Doug