bug-bash
[Top][All Lists]
Advanced

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

Re: [PATCH] FIGNORE: ignore results that are exactly equal to a suffix


From: Chet Ramey
Subject: Re: [PATCH] FIGNORE: ignore results that are exactly equal to a suffix
Date: Thu, 20 Apr 2023 16:04:01 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.0

On 4/16/23 10:08 PM, Emanuele Torre wrote:
FIGNORE makes bash only ignore filename completion results that end with
one of the specified suffixes and are not exactly equal to the suffix.

Yes. It requires a non-empty prefix and has since I first added it in
January, 1991 (based on an earlier contribution, so it's truly ancient).

Backwards compatibility is important, but I think it's also important to
look at the behavior of tcsh's `fignore', which is what this feature is
supposed to emulate.

It turns out that tcsh behaves like you propose, so your patch looks good.

Chet

--
``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]