Without the \grep escaping I kept getting output like this:
$ nvm ls
nvm use 0.10
(standard input):1:v0.10.29 version is not installed yet
Because I have grep to a crazy alias.
Strange thing is that tests worked in both cases... But this fixed the problem of nvm ls and nvm use for me.
Should escape grep in nvm_ls
The test operates in its own shell which wouldn't necessarily have your alias. Thanks for this fix.