Re: readline: double free when using PageDown

2023-11-25 Thread Grisha Levit
On Sat, Nov 25, 2023, 14:03 Chet Ramey wrote: > On 11/25/23 11:41 AM, Matthias Klose wrote: > > [forwarded from https://bugs.debian.org/1056314] > > > > """ > > I am getting a crash in the Python REPL in this scenario: > > > > 1. start "python3" in a terminal > > 2. type "2+2", enter > > 3. type

Re: [PATCH] negative arg trimming

2023-11-25 Thread Chet Ramey
On 11/21/23 12:57 AM, Grisha Levit wrote: rl_trim_arg_from_keyseq fails to trim a negative argument entered with universal-argument and fails to trim arguments if they have multiple leading minus signs. Thanks for the report and patches. Chet -- ``The lyf so short, the craft so long to lerne.'

Re: Many of the example loadable builtins don't work anymore

2023-11-25 Thread Chet Ramey
On 11/25/23 1:32 PM, Emanuele Torre wrote: In any event, thanks for pointing out where the examples still need to change. No problem. :) I also noticed that examples/loadables/strptime is not in .gitignore. Thanks. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer

Re: readline: double free when using PageDown

2023-11-25 Thread Chet Ramey
On 11/25/23 11:41 AM, Matthias Klose wrote: [forwarded from https://bugs.debian.org/1056314] """ I am getting a crash in the Python REPL in this scenario: 1. start "python3" in a terminal 2. type "2+2", enter 3. type (or copy-paste) "1234+5678", enter 4. arrow-up, remove "234", page-down, arrow

Re: Many of the example loadable builtins don't work anymore

2023-11-25 Thread Emanuele Torre
On Sat, Nov 25, 2023 at 01:20:55PM -0500, Chet Ramey wrote: > On 11/24/23 9:40 PM, Emanuele Torre wrote: > > Many of the loadable builtins that set variables in the > > examples/loadables directory don't work anymore because they still want > > to call legal_identifier instead of valid_identifier.

Re: Many of the example loadable builtins don't work anymore

2023-11-25 Thread Chet Ramey
On 11/24/23 9:40 PM, Emanuele Torre wrote: Many of the loadable builtins that set variables in the examples/loadables directory don't work anymore because they still want to call legal_identifier instead of valid_identifier. I haven't decided yet whether to use lib/sh/compat.c, in which case I'

Re: tests/glob2.sub failure on macOS 14

2023-11-25 Thread Chet Ramey
On 11/24/23 7:43 PM, Grisha Levit wrote: In macOS 14 (Sonoma), Apple switched from GNU to BSD-based iconv, which have slightly different charset definitions. The tests in glob2.sub test U+03B1 in zh_HK.big5hkscs, but this codepoint is not present in the BSD BIG5-HKSCS definition, so the test fail

readline: double free when using PageDown

2023-11-25 Thread Matthias Klose
[forwarded from https://bugs.debian.org/1056314] """ I am getting a crash in the Python REPL in this scenario: 1. start "python3" in a terminal 2. type "2+2", enter 3. type (or copy-paste) "1234+5678", enter 4. arrow-up, remove "234", page-down, arrow-up, enter 5. arrow-up, arrow-up, add "000" (

Re: Many of the example loadable builtins don't work anymore

2023-11-25 Thread Robert Elz
Date:Sat, 25 Nov 2023 08:53:48 +0100 From:Emanuele Torre Message-ID: | But the bash executable still does not contain the legal_ symbols: You'd only be getting symbols (.o files defining the symbols) loaded from an archive format library (.a file) if something alr

Re: Many of the example loadable builtins don't work anymore

2023-11-25 Thread Andreas Schwab
On Nov 25 2023, Emanuele Torre wrote: > But the bash executable still does not contain the legal_ symbols: If bash does not reference any of the symbols in lib/sh/compat.c there is nothing pulling it in. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 25

Re: Many of the example loadable builtins don't work anymore

2023-11-25 Thread Emanuele Torre
On Sat, Nov 25, 2023 at 08:53:48AM +0100, Emanuele Torre wrote: > Now I can see that compat.o is actually being used to create > lib/sh/libsh.a, and that libsh.a contains the legal_ symbols > > [...] > > But the bash executable still does not contain the legal_ symbols: > > $ grep -abo legal