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

bash completion improvements #2310

Merged
merged 6 commits into from
Sep 11, 2022

Conversation

scop
Copy link
Contributor

@scop scop commented Sep 10, 2022

See individual commits for details.

It's a no-op, so there's little reason to suggest it.
`compopt -o filenames` is a cheap way to accomplish mostly wanted
behavior. However it is semantically incorrect when we are not actually
completing filenames, and has side effects -- for example adds a
trailing slash to candidates matching present dirs.

bash >= 4.1 can `printf -v` to an array index, use it instead where
available.
Copy link
Owner

@sharkdp sharkdp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your continued contributions (and detailed commit messages)! I did a superficial review but hope it's okay if I mainly merge based on trust 😄

@sharkdp sharkdp merged commit 2dbc88d into sharkdp:master Sep 11, 2022
@scop scop deleted the feat/bash-completion-improvements branch September 12, 2022 09:44
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

Successfully merging this pull request may close these issues.

2 participants