Hello Gabriel,

> If I try to complete the second word, then it doesn't work, but that's
> because I don't have the configuration file under /etc and I believe
> that this is unrelated to your problem:

>  $ fsmtool2 showconfig <TAB>
>  grep: /etc/fsmd2/fsmd2.conf: No such file or directory
Yes, that's unrelated.


> So, would you be willing to make that change in your scripts? It looks
> like the right thing to do anyway.
I did this already:

        1) I removed my old workaround, storing the completion script
           below /etc/bash_completion.d/,

           a) not using anymore the .install files as a workaround

           b) using dh_bash-completion which stores it below
              /usr/share/bash-completion/completions/ which is the
              right way - yes (there is only one completion script
              left from distribution side, "git-prompt")

           c) I removed the broken surrounding "have(){ }" function not
              using it anymore as many other do (look into some completion
              scripts, neither have() nor _have() is used)


It works now for Stretch, Buster and Bullseye. By the way, have() is also 
broken in Bullseye, with _have() it works.

-- 
Thanks
Jürgen

Reply via email to