mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-30 17:09:50 +02:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user