scop / bash-completion

Programmable completion functions for bash
GNU General Public License v2.0
2.95k stars 380 forks source link

Redirection moved to the front wrongly affects completions #1186

Closed jidanni closed 6 months ago

jidanni commented 6 months ago

Here we see redirection moved to the front wrongly affects completions.

$ cat --<TAB> < a.txt
--help --number --number-nonblank --show-all --show-ends...
$ < a.txt cat --<TAB>
<BEEP>

cat is just one example.

It seems sooner or later you will have to "simply have bash itself do the first stage of the parsing" if possible... Only it knows all the intricacies of the language.

akinomyoga commented 6 months ago

How is this different from #900?

jidanni commented 6 months ago

Well this duplicate has a better title :-)