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

EOF while in parse_matched_pair closes interactive shell

2023-02-21 Thread Eduardo A . Bustamante López
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall uname output: Linux system76-pc 6.1.0-4-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.11-1 (2023-02-