[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bash-4.3-beta: compgen -f
From: |
Andreas Schwab |
Subject: |
Bash-4.3-beta: compgen -f |
Date: |
Mon, 26 Aug 2013 20:07:07 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
$ 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, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- Bash-4.3-beta: compgen -f,
Andreas Schwab <=