Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2505 - /sbin/rc-envupdate.sh problem with files ending in ~
Summary: /sbin/rc-envupdate.sh problem with files ending in ~
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-06 17:31 UTC by Sakari Lehtonen
Modified: 2003-02-04 19:42 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 Sakari Lehtonen 2002-05-06 17:31:11 UTC
I`m not sure if this is a bug or not, and it is easily fixed .. but it sure
annoyed me for some time.

I had edited some files manually in /etc/env.d/, and my editor had left some
backup filenames like 00basic~ lying around. The script /sbin/rc-envupdate.sh
processes all files in /etc/env.d/ to create the /etc/profile.env file .. due
to these backup files being processed, the profile.env was duplicating some
values, because it looks in all the files for independent variables and if it
finds more than one value for one variable, it merges them with ':'. 

Eg. LESSOPEN='|lesspipe.sh %s:|lesspipe.sh %s' etc .. so I could not read man
pages when the LESSOPEN variable was set up like this.

So I suggest that the script doesn`t process files ending with a '~'. Just a
suggestion ..
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-05-10 16:22:08 UTC
Fixed on CVS, and will be availible in next baselayout. Thanks for
pointing it out :)