[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ``complete -b'' does not include ``coproc''
From: |
Chet Ramey |
Subject: |
Re: ``complete -b'' does not include ``coproc'' |
Date: |
Mon, 21 Feb 2011 09:11:56 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 |
On 2/21/11 3:55 AM, Clark J. Wang wrote:
> On Mon, Feb 21, 2011 at 4:21 PM, Pierre Gaston <pierre.gaston@gmail.com>wrote:
>
>>
>>
>> On Mon, Feb 21, 2011 at 10:12 AM, Clark J. Wang <dearvoid@gmail.com>wrote:
>>
>>> Tested with 4.2:
>>>
>>> bash-4.2# complete -b help
>>> bash-4.2# help co<TAB><TAB>
>>> command compgen complete compopt continue
>>> bash-4.2#
>>>
>>> --
>>> Clark J. Wang
>>>
>> It's probably because:
>> $ type coproc
>> coproc is a shell keyword
>>
>> likewise help tim<TAB> doesn't complete "time"
>>
>>
>>
> I just checked and found that I actually write this in my bashrc:
>
> complete -A helptopic help
>
> But after bash loads my bashrc the compspec was changed to:
>
> # complete -p help
> complete -b help
Look at /etc/bash_completion, or wherever your programmable completion
package is installed.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/