a92c1c340f11a5e044f91c766430b31910a05fde
The removed loop tried to source /etc/bash*completion and /etc/profile.d/bash*completion* by hand, with two real problems: nullglob wasn't enabled for it (unlike everywhere else via _source_dir_files), so an empty match sourced the literal glob pattern and errored — the TODO already flagged this. It also re-sourced /etc/profile.d/bash_completion.sh, a script meant for /etc/profile on login shells, not for being re-run from an interactive-only ~/.bashrc. On a properly packaged system, bash-completion wires itself up already (confirmed here via /etc/profile.d/bash_completion.sh and progcomp being on by default) — this loop was dead weight at best and a source of environment-dependent breakage at worst (seen previously on Termux, where /etc doesn't have the same layout).
config-bash
My configuration for the bash shell
Languages
Shell
100%