|
From: | Douglas Lewan |
Subject: | Modifying completion of read(1builtin) |
Date: | Tue, 28 Mar 2023 15:42:35 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |