madsmith / bash-completion-lib

Automatically exported from code.google.com/p/bash-completion-lib
GNU General Public License v2.0
0 stars 0 forks source link

COMP_RESTRICT_BY_EXTENSION doesn't work #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Goto home directory and create a temporary pdf file: $ touch t.pdf
2. Edit `bash_completion_lib' to set COMP_RESTRICT_BY_EXTENSION=1
3. Load completion lib: $ source bash_completion_lib
4. Complete acroread: $ acroread <TAB>

What is the expected output? What do you see instead?

Expected output is to see only .pdf files in the completion list.  All
files are shown instead.

Original issue reported on code.google.com by fvu...@gmail.com on 16 May 2008 at 9:21

GoogleCodeExporter commented 8 years ago
Fixed in r6.
Setting COMP_RESTRICT_BY_EXTENSION=1 outside of bash_completion_lib now invokes
restricted completion based on filename extensions.  Default is
COMP_RESTRICT_BY_EXTENSION=0.

Unittest:

   test$ ./runCompletionLib acroread.exp

Original comment by fvu...@gmail.com on 17 May 2008 at 6:27