/etc/bash/bashrc.d/10-gentoo-color.bash has unknown field : genfun_has_readline 37 if (( gentoo_color <= 0 )) || ! genfun_has_readline; then this this results in a type error : >> bash: genfun_has_readline: command not found after login Reproducible: Always emerge --info https://bpa.st/ZGNQ # grep genfun_has_readline /var/db/repos/gentoo/app-shells/bash/files/bashrc.d/10-gentoo-color.bash if (( gentoo_color <= 0 )) || ! genfun_has_readline; then
The genfun_has_readline identifier refers to a function that is defined by /etc/bash/bashrc. Please check whether you have any unmerged config files. You can do this by running: find /etc -name '._cfg*' You may then find that there is a file named /etc/bash/._cfg0000_bashrc, or similarly named. In that case, you may use a tool such as dispatch-conf to merge it. See https://wiki.gentoo.org/wiki/Handbook:X86/Portage/Tools#dispatch-conf for more information. If you find that the file in question does not exist, please run the following commands then add the resulting information to this bug, preferably as an attachment. stat /etc/bash/bashrc cat /var/lib/portage/config
Just a small correction. If you find that the updated file is not present for merging, please obtain the information from the following three commands instead. stat /etc/bash/bashrc md5sum /etc/bash/bashrc cat /var/lib/portage/config
i had skipped and delete this update (to many changes)... add to bash.rc < # A convenient function to determine whether bash has readline support. < genfun_has_readline() [[ $(shopt -p direxpand 2>/dev/null) ]] < < # The following two shell options require for bash to have readline support. < genfun_has_readline && 32c108,114 < unset -f genfun_has_readline
(In reply to kfm from comment #2) > Just a small correction. If you find that the updated file is not present > for merging, please obtain the information from the following three commands > instead. > > stat /etc/bash/bashrc > md5sum /etc/bash/bashrc > cat /var/lib/portage/config thanks for the detailed explanation
Alright. Closing as resolved then.
By the way, if you accidentally reject an update, you can use the --noconfmem option of emerge to have it be proposed again.
(In reply to kfm from comment #6) > By the way, if you accidentally reject an update, you can use the > --noconfmem option of emerge to have it be proposed again. thank you, valuable information