Roman Rakus 1f2e80
diff -up bash-4.0/bashline.c.backport bash-4.0/bashline.c
Roman Rakus 1f2e80
--- bash-4.0/bashline.c.backport	2010-05-21 18:40:36.000000000 +0200
Roman Rakus 1f2e80
+++ bash-4.0/bashline.c	2010-05-21 18:40:49.000000000 +0200
Roman Rakus 1f2e80
@@ -1669,7 +1669,7 @@ globword:
Roman Rakus 1f2e80
      a single match (multiple matches that end up reducing the number of
Roman Rakus 1f2e80
      characters in the common prefix are bad) will ever be returned on
Roman Rakus 1f2e80
      regular completion. */
Roman Rakus 1f2e80
-  if (glob_pattern_p (hint))
Roman Rakus 1f2e80
+  if (globpat)
Roman Rakus 1f2e80
     {
Roman Rakus 1f2e80
       if (state == 0)
Roman Rakus 1f2e80
 	{