help-bash
[Top][All Lists]
Advanced

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

Re: Modifying completion of read(1builtin)


From: Dennis Williamson
Subject: Re: Modifying completion of read(1builtin)
Date: Tue, 28 Mar 2023 14:49:53 -0500

On Tue, Mar 28, 2023, 2:43 PM Douglas Lewan <d.lewan2000@gmail.com> wrote:

> Hi, all,
>
> I have a list of about 30 strings that are appropriate for a certain
> instance of read(1builtin).
>
> How can I set up completion for read to include them? It looks like some
> combination of compgen() and complete() would be right, but I haven't
> been able to find it. Can anyone help?
>
> It also looks like any such modification would apply to all instances of
> read. Can it be restricted to that one instance? Can it be restricted to
> exactly those values?
>
> Thanks.
>
> --
> ,Doug
>
> Never believe anything in politics until it has been officially denied. -
> Otto von Bismarck
>


You're executing read from the command line?


reply via email to

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