Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to move < /dev/null to the back #900

Open
jidanni opened this issue Mar 11, 2023 · 1 comment
Open

Need to move < /dev/null to the back #900

jidanni opened this issue Mar 11, 2023 · 1 comment

Comments

@jidanni
Copy link
Contributor

jidanni commented Mar 11, 2023

< /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

@akinomyoga
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants