I have the following as /etc/portage/bashrc: function pre_pkg_setup() { echo -ne "\n\nemerge --info:\n$( emerge --info )\n\n" >> /var/tmp/portage/"${CATEGORY}"/"${PF}"/temp/build.log } It produces something like: "]0;emerge]0;root@:~" Example: https://736826.bugs.gentoo.org/attachment.cgi?id=654246 IS there a way to avoid this behavior?
The echo -e is not appropriate for arbitrary emerge --info output. Here's a way to avoid it: function pre_pkg_setup() { { echo -ne '\n\nemerge --info:' emerge --info echo -ne '\n\n' } &>> /var/tmp/portage/"${CATEGORY}"/"${PF}"/temp/build.log }
perfect, it works for me! thanks