[Top][All Lists]

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

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

From: Koichi Murase
Subject: Re: [PATCH] Save more readline state when running compgen
Date: Thu, 23 Mar 2023 05:33:40 +0900

2023年3月22日(水) 22:51 Chet Ramey <chet.ramey@case.edu>:
> > 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?

I mean the function itself does not rely on the compgen, but I call
compgen through such a function so the compgen would be executed in
the main shell. If I understand this report correctly, it changes the
state of Readline. But I'm not sure if it affects any observable
behavior in my specific setup because I re-implement the entire
completion so these `compgen's are not called from inside the readline
bindable function `complete'. Do you think calling `compgen', which
leaves the state of `compopt -o filenames', etc., outside the bindable
function `compete' would affect any behaviors?


reply via email to

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