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.'
On Tue, Nov 21, 2023, 00:57 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.
>
Also fails if the function to be executed is shadowed by a key map:
bind '
d
From 250618affbd145c120862118a59530e8ffd6dbec Mon Sep 17 00:00:00 2001
From: Grisha Levit
Date: Tue, 21 Nov 2023 00:53:20 -0500
Subject: [PATCH] negative arg trimming
---
bashline.c | 4 ++--
lib/readline/bind.c | 25 -
2 files changed, 14 insertions(+), 1