help-bash
[Top][All Lists]
Advanced

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

Re: Any meaningful examples of using "complete -E"?


From: Chet Ramey
Subject: Re: Any meaningful examples of using "complete -E"?
Date: Tue, 22 Aug 2023 09:09:30 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.14.0

On 8/22/23 6:53 AM, Clark Wang wrote:

    Command name completion on an empty line.


Like

   $ complete -E -W foo

? Then it can only support one single command.

What does that mean? You can supply a list of words.

I guess this is not worth a dedicated -E option. Any other practical use case?

To filter out unwanted command completions, or restrict command completions
to a specific type, or use any of the other options available with
`complete'. Why does it matter? If you don't see a need for it, don't
use it.

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