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 ..
Fixed on CVS, and will be availible in next baselayout. Thanks for pointing it out :)