may I let cygwin-bash not recognize DLLs as executable and auto-complete them

4

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.

Jokester

Posted 2010-08-31T03:37:45.820

Reputation: 1 523

Strictly speaking, DLLs are executable. – Ignacio Vazquez-Abrams – 2010-08-31T04:11:59.263

@Ignacio: I'd like to see that from a Cygwin command line. – Paused until further notice. – 2010-08-31T04:14:48.010

Answers

2

FIGNORE=.dll

It's a colon separated list:

FIGNORE=".foo:.bar:~"

Paused until further notice.

Posted 2010-08-31T03:37:45.820

Reputation: 86 075

it works. it takes two mes to give more gratitude. – Jokester – 2010-08-31T04:25:28.203

1This excludes DLLs from all filename completion though, not just when completing executable files. Can bash be tuned finer than this? – Gilles 'SO- stop being evil' – 2010-08-31T07:38:23.127