The problem is that if someone has a ~/.curlrc file that contains something like -w "\n" (to make output more readable), it breaks tar because tar isn't expecting the newline. The solution is just to make the curl call curl --disable, so that it doesn't read the .curlrc file at all.
The problem:
nvm install
was totally broken for me, showing an error like:This was a pretty maddening issue to debug (and ultimately entirely my fault) but the issue is here:
https://github.com/jorgebucaran/nvm.fish/blob/c69e5d1017b21bcfca8f42c93c7e89fff6141a8a/functions/nvm.fish#L116-L117
The problem is that if someone has a
~/.curlrc
file that contains something like-w "\n"
(to make output more readable), it breakstar
because tar isn't expecting the newline. The solution is just to make thecurl
callcurl --disable
, so that it doesn't read the.curlrc
file at all.