bash-completion icon indicating copy to clipboard operation
bash-completion copied to clipboard

Need to move < /dev/null to the back

Open jidanni opened this issue 2 years ago • 1 comments

< /dev/null HOME=/dev/null reportbug --template ca-certifica<TAB>

needs to have the < /dev/null moved to the back to make it work. 5.2.15(1)-release echo "${BASH_COMPLETION_VERSINFO[*]}" 2 11

jidanni avatar Mar 11 '23 23:03 jidanni

Bash seems to call the completion function for an empty command (complete -F ... '') in this case. We need to skip the redirections and temporary environments to find the actual command name and delegate the completion generation using _comp_command_offset.

akinomyoga avatar Mar 12 '23 15:03 akinomyoga