bash --norc -in <<< $'A \e-\cXs'

---
 bashline.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bashline.c b/bashline.c
index 528f56e0..0a4e280e 100644
--- a/bashline.c
+++ b/bashline.c
@@ -1336,6 +1336,9 @@ bash_spell_correct_shellword (int count, int key)
   int wbeg, wend;
   char *text, *newdir;
 
+  if (count < 0)
+    count = -count;
+
   while (count)
     {
       bash_backward_shellword (1, key);
-- 
2.45.1


Reply via email to