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

Trying to complete the . builtin doesn't work #703

Closed
3 tasks done
TestingPlant opened this issue Feb 22, 2022 · 2 comments
Closed
3 tasks done

Trying to complete the . builtin doesn't work #703

TestingPlant opened this issue Feb 22, 2022 · 2 comments

Comments

@TestingPlant
Copy link

Describe the bug

When trying to find completions for the . builtin command, the below messages appear:

bash_completion: /usr/share//bash-completion/completions/.: is a directory
bash_completion: /usr/share/bash-completion/completions/.: is a directory

These messages only appear when trying to find completions for . the first time.

To reproduce

  1. Run bash
  2. Type . , including the trailing space
  3. Press tab

Expected behavior

Completions for the . builtin should appear

Versions (please complete the following information)

  • Operating system name/distribution and version: Arch Linux
  • bash version, echo "$BASH_VERSION": 5.1.16(1)-release
  • bash-completion version, (IFS=.; echo "${BASH_COMPLETION_VERSINFO[*]}"): 2.11.0

Additional context

I'm using the bash-completion-git package from the AUR, which uses the latest code from the master branch. Using the normal bash-completion package which uses version 2.11 doesn't have this issue.

Debug trace

log.txt

@abbeyj
Copy link

abbeyj commented Aug 9, 2022

I bisected this down to ca361be. Possibly there should be a special case for .? A similar problem also happens if trying to find completions for a command called .. so if a special case is added for . then one for .. would also be useful. Alternatively maybe just going back to silently ignoring directories would be preferable?

@akinomyoga
Copy link
Collaborator

See #776

@scop scop closed this as completed in 017fb55 Aug 20, 2022
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

3 participants