Re: EOF while in parse_matched_pair closes interactive shell

2023-02-21 Thread Chet Ramey
On 2/21/23 3:59 PM, Eduardo A. Bustamante López wrote: On Tue, Feb 21, 2023 at 11:03:59AM -0500, Chet Ramey wrote: (...) The shell should exit on EOF. Previous versions relied on undocumented bison behavior, which resulted in a token that wasn't handled by the grammar. Thank you for reviewing

Re: EOF while in parse_matched_pair closes interactive shell

2023-02-21 Thread Eduardo A . Bustamante López
On Tue, Feb 21, 2023 at 11:03:59AM -0500, Chet Ramey wrote: (...) > The shell should exit on EOF. Previous versions relied on undocumented > bison behavior, which resulted in a token that wasn't handled by the > grammar. Thank you for reviewing this and for the explanation. I initially thought thi

Re: EOF while in parse_matched_pair closes interactive shell

2023-02-21 Thread Chet Ramey
On 2/21/23 3:56 AM, Eduardo A. Bustamante López wrote: Bash Version: 5.2 Patch Level: 15 Release Status: release Description: The handling of EOF while parsing an (unmatched) quoted string changes between 5.1 and 5.2. In 5.1, typing [Ctrl-d] alone while in the context of a q