How to pass an autocomplete list to a pipe in shell?
bash, shell
Solution
You really mean `shell`? I think you mean bash. :-)
Autocomplete in bash can be called manually like this:
compgen -C ls -f
Have a look for bash man page and the keywords `compgen` and `complete`
If the man pages for `compgen` and `complete` could not be found take a look for `man bash`.
Problem
In shell we do this: `ls l`Tab and we get the list of files which begins on l. The question is: in shell, how to make something like this `ls l`Tab`| cat` using Tab or not to autocomplete but not using pattern `ls l*`