convert TMOUT input timeout handling to use native readline timeouts if readline is being used; change TMOUT SIGALRM processing not to run in a signal handler context to exit; fix for adding multiline commands containing |& to the history list; history -r should not change history_lines_this_session if reading from the history file

This commit is contained in:
Chet Ramey committed 2026-09-08 12:41:47 -04:00
1 parent 81ddb6474b
commit f26caaa178
13 files changed
+261 -16

No files matched your search

+6 -1
View File
@@ -1,6 +1,6 @@
/* input.c -- functions to perform buffered input with synchronization. */
/* Copyright (C) 1992-2023 Free Software Foundation, Inc.
/* Copyright (C) 1992-2026 Free Software Foundation, Inc.
This file is part of GNU Bash, the Bourne Again SHell.
@@ -114,6 +114,11 @@ stream_getc (FILE *stream)
}
else if (interrupt_state || terminating_signal) /* QUIT; */
local_index = local_bufused = 0;
else if (input_timeout_seen) /* CHECK_INPUT_TIMEOUT; */
{
local_index = local_bufused = 0;
return EOF;
}
}
local_index = 0;
}