On 3/21/23 7:00 PM, Koichi Murase wrote:
2023年3月22日(水) 6:00 Greg Wooledge <g...@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    c...@case.edu    http://tiswww.cwru.edu/~chet/


Reply via email to