Thanks for the prompt reply.

FIXED!
I am attaching the script.

The other scripts use "_have". And at the end of the script, for
example in evince, the completion command is given.

Test. Launch an xterm running bash.
complete -p |grep lyx
returns nothing
lyx <space><tab><tab>
gives list corresponding to 'ls *lyx'
complete -p |grep lyx
outputs: complete -F _lyx lyx


Same patern than, for example, evince.

Tanks
       Hernán


El Fri, 25 Mar 2022 14:21:18 +0100
Pavel Sanda <sa...@lyx.org> escribió:
> On Fri, Mar 25, 2022 at 09:39:54AM -0300, Hernán Gustavo Solari wrote:
> > The bash-complete script does not work. It calls "have lyx" but
> > have is not a program.  
> 
> Strange "have()" should have been defined in
> /usr/share/bash-completion/bash_completion which should be called via
> /etc/bash_completion
> 
> But it does not work here either. Not completion expert, but I see
> bunch of other scripts using "have" as well so I wonder whether this
> is wider issue.
> 
> Pavel



-- 
Hernán G Solari
http://users.df.uba.ar/solari/

Attachment: bash_completion
Description: Binary data

Reply via email to