grep alias prevents install #207

Closed
skisulli opened this Issue Mar 14, 2013 · 3 comments

Comments

Projects
None yet
5 participants

I normally alias grep to grep -n. If I do that I get the following error when trying to install any version of node.

######################################################################## 100.0%
Checksums do not match.
Binary download failed, trying source.
node-1:v0.10.0-darwin-x64.tar.gz
node-1:v0.10.0-darwin-x64
Additional options while compiling:
nvm: install 1:v0.10.0 failed!

I have removed the alias for now.

replace all calls to grep with command grep
This bypasses any alias set.

chakrit commented Mar 27, 2013

You can avoid aliases by prepending the command with \ i.e. \grep.

See: http://www.cyberciti.biz/faq/bash-shell-temporarily-disable-an-alias/

Just tried on both my zsh and bash shell. It works in both.

ljharb closed this in #259 Jun 26, 2013

@evocateur evocateur added a commit to evocateur/nvm that referenced this issue Jul 31, 2013

@evocateur evocateur Avoid error from aliased `which` during install
The same fix as #207, just for fools like me who have `which` aliased to `type` in OS X. Without this escape, a very cryptic error message is emitted (though the install ultimately succeeds, as long as one actually has `curl` installed).
e5d7d49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment