Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

using GNU bash 3.2.29(20)-release from cygwin 1.5 on a windows-xp sp3 japanese installation.

being a linux user, I know in cygwin and *nix, all files with +x mod can be executable. so it is reasonable to assume all files to be (potentally) executable at first.

But in my context, there are some extension that almost never be executable , say DLLs. however, they will also be listed in bash auto-completion, which is un-nice.

so is there some way to 'mask' given file extensions so that they will not be recognized as executable file(an example , DLL again ) and appear in bash auto-complete list?

thanks in advance.

share|improve this question
    
Strictly speaking, DLLs are executable. –  Ignacio Vazquez-Abrams Aug 31 '10 at 4:11
    
@Ignacio: I'd like to see that from a Cygwin command line. –  Dennis Williamson Aug 31 '10 at 4:14

1 Answer 1

up vote 2 down vote accepted
FIGNORE=.dll

It's a colon separated list:

FIGNORE=".foo:.bar:~"
share|improve this answer
    
it works. it takes two mes to give more gratitude. –  Jokester Aug 31 '10 at 4:25
    
This excludes DLLs from all filename completion though, not just when completing executable files. Can bash be tuned finer than this? –  Gilles Aug 31 '10 at 7:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.