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