Closed MayeulC closed 2 months ago
The problem arises even with the plain Bash (without loading bash-completion
or any other shell settings). This is an issue of the upstream Bash.
Ah, I see, thank you. This can probably be closed then ?
Yeah. To report it upstream, you can post an email to bug-bash@gnu.org.
Describe the bug
When completing commands, suggestions are displayed. However, readline considers them to be files. Since my configuration colors completed files by type (folder, executable, etc), readline runs a stat operation on the completions, and usually does not find matching files. It then colors them as missing files.
The result is that all command completions are listed as blinking bold white text on red background in my terminal, which is very annoying.
To reproduce
With bash-completion loaded:
echo "set colored-stats On" >> ~/.inputrc
ls --<TAB><TAB>
Expected behavior
Text should be displayed in a neutral manner, or just respecting the
menu-color-display-prefix
Versions (please complete the following information)
echo "$BASH_VERSION"
: 4.4.20(IFS=.; echo "${BASH_COMPLETION_VERSINFO[*]}")
: 2.7Additional context
Tab completing bash variables does not highlight them as if they were files.
Interesting thread on RedHat/Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=1648170
Small related thread on gentoo forums: https://forums.gentoo.org/viewtopic-p-8628015.html
Text is not necessarily going to blink, depending on your LS_COLORS, terminal, etc. But it is probably still highlighted as a missing file, like as a missing symlink target.