scop / bash-completion

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

Redirection moved to the front wrongly affects completions #1186

Closed jidanni closed 4 months ago

jidanni commented 5 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 5 months ago

How is this different from #900?

jidanni commented 4 months ago

Well this duplicate has a better title :-)