Short answer to the original poster: you need to "export" your shell variable to the environment like this:
export CVSROOT
to have the effect you're trying to get.
If a shell variable (like CVSROOT) is "exported", then whenever you set its value, the corresponding value is set in the...