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 c...@case.edu http://tiswww.cwru.edu/~chet/