Fix for above bug, would seem that the while loop has fallen out of
the globword: sections if (state == 0).. since I'm unsure what'll
happen with my reply formatting etc the patch below is without
whitespace changes, someone else can do a proper formatting of it :)

kni...@traktor:/tmp/bash-4.1$ diff -w -u bashline.c{.orig,}
--- bashline.c.orig     2010-03-09 10:21:14.000000000 +0100
+++ bashline.c  2010-03-09 10:49:35.000000000 +0100
@@ -1698,7 +1698,6 @@

          if (glob_matches[1] && rl_completion_type == TAB)     /* multiple
matches are bad */
            return ((char *)NULL);
-       }

       while (val = glob_matches[local_index++])
         {
@@ -1714,6 +1713,7 @@
            }
          free (val);
         }
+       }

       glob_ignore_case = old_glob_ignore_case;
       return ((char *)NULL);

Reply via email to