[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FIGNORE not effective if it contains a full filename

From: Chet Ramey
Subject: Re: FIGNORE not effective if it contains a full filename
Date: Wed, 19 Aug 2020 16:20:58 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.11.0

On 8/19/20 4:01 PM, Josh Triplett wrote:
> On Wed, Aug 19, 2020 at 03:33:49PM -0400, Chet Ramey wrote:
>> On 8/19/20 3:15 PM, Josh Triplett wrote:
>>> Bash Version: 5.0
>>> Patch Level: 18
>>> Release Status: release
>>> Description:
>>>         If FIGNORE contains the complete filename of a file, tab
>>>         completion will not ignore it.
>> FIGNORE is a list of suffixes, and requires at least one character before
>> the suffix when matching.
> I'm wondering if either that might be changeable or there could be a way
> to specify full filenames to get the same treatment. 

FIGNORE has behaved this way for 30 years, so there's not much chance that
behavior will change.

> I'd like to ignore
> specific filenames, rather than all filenames ending in a suffix.  Or
> perhaps there could be an option that does a regex match (allowing
> things like ^ and $)?

You can do this with programmable completion, but you have to go through
the effort of defining the compspecs for the commands of interest. Or
you can use it in the default programmable completion (complete -D).

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]