bug-bash
[Top][All Lists]
Advanced

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

Re: [PATCH] Save more readline state when running compgen


From: Grisha Levit
Subject: Re: [PATCH] Save more readline state when running compgen
Date: Tue, 21 Mar 2023 16:52:03 -0400

On Tue, Mar 21, 2023 at 4:11 PM Chet Ramey <chet.ramey@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.



reply via email to

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