Skip to content

Conversation

@scop
Copy link
Owner

@scop scop commented Mar 23, 2023

Per #904

So that things work also for commands preceded by a backslash.

Co-authored-by: Koichi Murase <[email protected]>
[[ $compfile == */.?(.) ]] ||
echo "bash_completion: $compfile: is a directory" >&2
elif [[ -e $compfile ]] && . "$compfile"; then
elif [[ -e $compfile ]] && . "$compfile" "$cmd"; then
Copy link
Owner Author

Choose a reason for hiding this comment

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

I guess this is something we could consider adding a test for, but I'm not sure if it's worth the trouble.

Also not sure about adding tests for the the actual completions as their result varies depending on if the generating command is installed or not.

Copy link
Collaborator

@akinomyoga akinomyoga left a comment

Choose a reason for hiding this comment

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

As for adding or not adding the tests, either works for me.

@scop scop merged commit df8cdda into master Mar 26, 2023
@scop scop deleted the feat/3rd-party branch March 26, 2023 21:10
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.

3 participants