bug-bash
[Top][All Lists]
Advanced

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

Re: Feature request: tab completion on functions


From: Chet Ramey
Subject: Re: Feature request: tab completion on functions
Date: Sun, 28 Jan 2018 18:51:09 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.2

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



reply via email to

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