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: Clark Wang
Subject: Re: Any meaningful examples of using "complete -E"?
Date: Tue, 22 Aug 2023 18:53:06 +0800

On Mon, Aug 21, 2023 at 9:39 PM Chet Ramey <chet.ramey@case.edu> wrote:

> On 8/21/23 8:20 AM, Clark Wang wrote:
> > According to the doc "complete -E" is used for "completion attempted on a
> > blank line" but right after you input any char the line is not blank any
> > more. I cannot think of a meaningful way of using it. Any examples?
>
> Command name completion on an empty line.
>

Like

  $ complete -E -W foo

? Then it can only support one single command. I guess this is not worth a
dedicated -E option. Any other practical use case?

-clark


reply via email to

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