mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-11-12 17:53:52 +01: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:
1 parent
d0cd67ee13
commit
f9ed510acb
15 files changed
+103
-30
No files matched your search
@@ -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