$ bash -c 'compgen -f'
Segmentation fault

diff --git a/pcomplete.c b/pcomplete.c
index 6b4e033..a3327ed 100644
--- a/pcomplete.c
+++ b/pcomplete.c
@@ -744,7 +744,8 @@ pcomp_filename_completion_function (text, state)
         (rl_completion_found_quote == 0). */
       iscompgen = this_shell_builtin == compgen_builtin;
       iscompleting = RL_ISSTATE (RL_STATE_COMPLETING);
-      if (iscompgen && iscompleting == 0 && rl_completion_found_quote == 0)
+      if (iscompgen && iscompleting == 0 && rl_completion_found_quote == 0
+         && rl_filename_dequoting_function)
        {
          /* Use rl_completion_quote_character because any single or
             double quotes have been removed by the time TEXT makes it


Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

Reply via email to