|
| From: | Chet Ramey |
| Subject: | Re: [PATCH] Save more readline state when running compgen |
| Date: | Wed, 22 Mar 2023 09:50:56 -0400 |
| User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 |
On 3/21/23 7:00 PM, Koichi Murase wrote:
2023年3月22日(水) 6:00 Greg Wooledge <greg@wooledge.org>:I don't use programmable completion, but I could *imagine* someone using a temp file to store the results, then using mapfile to read them back in, to avoid the fork() that the command substitution uses.I wouldn't say my usage is typical, but I do that in fact. I have a shell function to do that for an arbitrary command (which I once posted in help-bash [1] but now it's old. The latest is [2]) and use it everywhere.
So is your function suite dependent on the compgen invocations changing
the readline completion state?
--
``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/
| [Prev in Thread] | Current Thread | [Next in Thread] |