fix to RL_STATE_EOF in readline callback mode; fix to edge case for terminating signal handling and exit traps in -c command

This commit is contained in:
Chet Ramey
2022-05-03 10:43:44 -04:00
parent d0cd67ee13
commit f9ed510acb
15 changed files with 103 additions and 30 deletions
+5 -2
View File
@@ -279,8 +279,11 @@ rl_callback_read_char (void)
}
/* Make sure application hooks can see whether we saw EOF. */
if (rl_eof_found = eof)
RL_SETSTATE(RL_STATE_EOF);
if (eof > 0)
{
rl_eof_found = eof;
RL_SETSTATE(RL_STATE_EOF);
}
if (rl_done)
{