Emily Seville wrote on Sun, Nov 21, 2021 at 01:40:08PM +1000: > Bash version: GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu) > OS version: Linux Mint 20.2 Cinnamon > > Hello! Why when I create *complete -C 'echo -e "aa\nab\n"' : *completion and > try use it I obtain additional garbage in output instead of only *ab ab* > hints?
Doesn't sound like garbage to me - it's the arguments the shell passes to your command, echo will just repeat them. If you replace echo -e with printf for example, that ignores extra arguments, you'll get what you want -- but if your only requirement is a fixed list then you're better off with something else than running a command, why not complete -W 'aa ab' ? This (bug-bash) mailing list is intended for actual bug reports, not usage questions. If you have questions in future, the best place to ask them is another mailing list run by this community: https://lists.gnu.org/mailman/listinfo/help-bash -- Asmadeus | Dominique Martinet