On Tue, Mar 21, 2023 at 4:11 PM Chet Ramey <chet.ra...@case.edu> wrote: > OK, which do you think would be the more common case? Wanting the options > used to generate completions to persist or using it in this way?
Usually people do `COMPREPLY=($(compgen ...))' (or write to stdout in a command specified with `complete -C') so nothing persists anyway, right? I don't know if there's really any use case that generates completions to place into COMPREPLY by running compgen in the foreground so it's hard for me to imagine a use case that benefits from the readline state being modified.