--- /usr/share/bash-completion/helpers/gentoo-common.sh.bak 2022-01-14 05:34:06.103179072 -0800 +++ /usr/share/bash-completion/helpers/gentoo-common.sh 2022-01-14 05:41:01.223171114 -0800 @@ -66,9 +66,9 @@ for f in /usr/share/portage/config/repos.conf \ /etc/portage/repos.conf \ /etc/portage/repos.conf/*; do - [[ -f ${f} ]] || continue + [[ -f ${f} && ${f} != *~ ]] || continue insection=0 while read -r line; do # skip comments and blank lines