creationix/nvm — pull request #170 by tisba (2012-11-20 14:43:14+00:00)
Title: Avoid pollution of environment

**tl;dr** I added `local` to all variables that are used internally to NVM. Variables that are used externally should be prefixed with `NVM_`.

Some days ago I had a really hard day trying to figure out, why my `rake db:migrate` task was not working. The issue was, that nvm silently added a `VERSION` environment variable which is used by rake/rails to force the database migration towards a specific version.

Long story short: nvm was leaking a lot of variables.

You can easily test this by doing something like:
```
env > env_before
source npm.sh
env > env_after
npm install v0.8.14
env > env_after_install
```

If you look at a diff of the `env_`-files you can see what I mean.