Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16783

Re: FIGNORE not effective if it contains a full filename

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: FIGNORE not effective if it contains a full filename
Date 2020-08-19 16:20 -0400
Organization ITS, Case Western Reserve University
Message-ID <mailman.408.1597868470.2469.bug-bash@gnu.org> (permalink)
References <20200819191554.GA405595@localhost> <0f999534-96c7-0052-02ce-46e5cb1883ba@case.edu> <20200819200133.GA410878@localhost> <537de330-5736-1bf5-55ca-4e553d770e47@case.edu>

Show all headers | View raw


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/

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: FIGNORE not effective if it contains a full filename Chet Ramey <chet.ramey@case.edu> - 2020-08-19 16:20 -0400

csiph-web