If in some file from /etc/env.d there is line, like that LESS_TERMCAP_mb='$\E[01;31m' env-update is putting in profile.env line export LESS_TERMCAP_mb=$'\E[01;31m' causing every portage tool to warning like that: "/etc/profile.env", line 18: $: bad substitution Reproducible: Always Steps to Reproduce: 1. install sys-apps/portage-2.1.10.54 2. put in some file in /etc/env.d/ line "LESS_TERMCAP_mb='$\E[01;31m'" 3. env-update 4. emerge Actual Results: warning "/etc/profile.env", line 18: $: bad substitution Expected Results: no warning
Are you sure that LESS_TERMCAP_mb=$'\E[01;31m' is correct? If I google for LESS_TERMCAP_mb, the first few results show everyone using LESS_TERMCAP_mb=$'\E[01;31m' instead. If I put what everyone else is using in /etc/env.d, then it seems to work and I don't get any warning.
(In reply to comment #1) Nevermind, I'm getting the warning now. Will fix...
This is fixed in git: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=ed8a457e265ea1c23b66aeb12d00f1abd3d79e60
This is fixed in 2.1.10.55 and 2.2.0_alpha99.
thanks for quick feedback (: