Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 410625 - sys-apps/portage-2.1.10.54 and 2.2.0_alpha98: 'bad substitution' error for profile.env
Summary: sys-apps/portage-2.1.10.54 and 2.2.0_alpha98: 'bad substitution' error for pr...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 409383
  Show dependency tree
 
Reported: 2012-04-03 06:19 UTC by Michael
Modified: 2012-04-03 07:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael 2012-04-03 06:19:24 UTC
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
Comment 1 Zac Medico gentoo-dev 2012-04-03 06:40:20 UTC
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.
Comment 2 Zac Medico gentoo-dev 2012-04-03 06:44:56 UTC
(In reply to comment #1)
Nevermind, I'm getting the warning now. Will fix...
Comment 4 Zac Medico gentoo-dev 2012-04-03 07:08:07 UTC
This is fixed in 2.1.10.55 and 2.2.0_alpha99.
Comment 5 Michael 2012-04-03 07:26:34 UTC
thanks for quick feedback (: