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

Trying to complete the . builtin doesn't work

Open TestingPlant opened this issue 3 years ago • 0 comments

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)

  • [x] Operating system name/distribution and version: Arch Linux
  • [x] bash version, echo "$BASH_VERSION": 5.1.16(1)-release
  • [x] 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

TestingPlant avatar Feb 22 '22 06:02 TestingPlant