compgen stops processing backslashes after any call to bind

2022-12-14 Thread Fabien Orjollet
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 debtest 6.0.0-5-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.0.10-2 (2022-12-01)

Re: bash crashes if TERM is unset and the Delete key is pressed twice

2022-12-14 Thread Emanuele Torre
On Wed, Dec 14, 2022 at 02:30:04PM -0500, Chet Ramey wrote: > Try this. > > *** ../bash-20221202/lib/readline/readline.c 2022-12-06 09:48:50.0 > -0500 > --- lib/readline/readline.c 2022-12-14 14:20:32.0 -0500 > *** > *** 591,595 > (*rl_redisplay_function

Re: bash crashes if TERM is unset and the Delete key is pressed twice

2022-12-14 Thread Chet Ramey
On 12/14/22 2:01 PM, Emanuele Torre wrote: On Wed, Dec 14, 2022 at 12:31:39PM -0500, Chet Ramey wrote: On 12/13/22 9:00 AM, Emanuele Torre wrote: This happens since 88d69b4fa224d93ef1d26b80229668397bb6496b . If bash is started with the TERM variable unset or empty, it will segfault and crash i

Re: bash crashes if TERM is unset and the Delete key is pressed twice

2022-12-14 Thread Emanuele Torre
On Wed, Dec 14, 2022 at 12:31:39PM -0500, Chet Ramey wrote: > On 12/13/22 9:00 AM, Emanuele Torre wrote: > > This happens since 88d69b4fa224d93ef1d26b80229668397bb6496b . > > > > If bash is started with the TERM variable unset or empty, it will > > segfault and crash if you press the Delete key tw

Re: bash crashes if TERM is unset and the Delete key is pressed twice

2022-12-14 Thread Chet Ramey
On 12/13/22 9:00 AM, Emanuele Torre wrote: This happens since 88d69b4fa224d93ef1d26b80229668397bb6496b . If bash is started with the TERM variable unset or empty, it will segfault and crash if you press the Delete key twice (it only happens for the first prompt, and if you don't press anything b

Re: Nested expansion in heredoc fails

2022-12-14 Thread wang yuhang
On 12/13/22 12:42 PM, wang yuhang wrote:> This modification has been changed when dealing with '$(', It seems > to have missed the right bracket. Maybe we should add this bracket. It seems that there is something wrong with this patch, It's true that my brain is not very good lat

Bash-5.2 patch 15

2022-12-14 Thread Chet Ramey
BASH PATCH REPORT = Bash-Release: 5.2 Patch-ID: bash52-015 Bug-Reported-by:Frode Nordahl Bug-Reference-ID: <20221119070714.351759-1-frode.nord...@canonical.com> Bug-Reference-URL: https://lists.

Re: Nested expansion in heredoc fails

2022-12-14 Thread wang yuhang
Hello  In bash-5.2, There is one modification: fix to expand $'...' and $"..." in certain word expansions while expanding lines of here-document data This modification has been changed when dealing with '$(', It seems to have missed the right bracket. Maybe we should add this bracket. I hope

Re: Nested expansion in heredoc fails

2022-12-14 Thread Chet Ramey
On 12/13/22 12:42 PM, Norbert Lange wrote: Bash Version: 5.2 Patch Level: 2 Release Status: release Description: Parameter expansion within heredocs fails. The code below works with other shells aswell as bash 5.1 Thanks for the report. It's an off-by-one error that is specific to command su

Bash-5.2 patch 14

2022-12-14 Thread Chet Ramey
BASH PATCH REPORT = Bash-Release: 5.2 Patch-ID: bash52-014 Bug-Reported-by:Andreas Schwab Bug-Reference-ID: Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2022-10/msg00076.html

Bash-5.2 patch 13

2022-12-14 Thread Chet Ramey
BASH PATCH REPORT = Bash-Release: 5.2 Patch-ID: bash52-013 Bug-Reported-by:Ralf Oehler Bug-Reference-ID: <20221120140252.2fc6489b@bilbo> Bug-Reference-URL: https://lists.gnu.org/archive/html/bug