On 1/27/18 3:38 PM, L A Walsh wrote:
> Ilkka Virta wrote:
>> Doesn't Bash/readline already tab-complete file names so that the
>> completion fixes the case? If I do 'touch ABBA' and 'rm ab<tab>', it will
>> complete the name to 'ABBA'. It also completes 'ab<tab>' to 'ABBA' as the
>> name of a command if it's a binary in PATH, but if it's a function, it
>> seems to require the correct case. Sort of confusing, really.
>>
> ----
> Bash has the nocaseglob option, which ignores case on searching for
> files via a wildcard. I don't believe there is an option to search
> for functions ignoring case. So your "ab"<tab> will ignore case of
> a file that is looked up. But functions aren't able to be looked up
> that way.
It's all fine. He wants case-insensitive matching, which bash can be made
to do, and non-case-preserving completion, which readline does.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/