开发者

weird rvm list output

开发者 https://www.devze.com 2023-02-17 20:51 出处:网络
I\'m getting this error when i do \'rvm list\' command. I\'m using oh-my-zsh, but loading it both in bash and zsh, I\'m still getting the same error.

I'm getting this error when i do 'rvm list' command. I'm using oh-my-zsh, but loading it both in bash and zsh, I'm still getting the same error.

")syntax error: invalid arithmetic operator (error token 开发者_如何转开发is "

ruby-1.8.7-p334 [ x86_64 ]

Thanks!


This looks like a bash error message, but weirdly rendered because the message contains a carriage return. In fact bash was displaying

bash: 42: syntax error: invalid arithmetic operator (error token is "␍")

where ␍ is a carriage return. If you have a carriage return in a file, it's probably because it uses DOS/Windows line endings (CR+LF). Convert it to unix line endings (LF only).

0

精彩评论

暂无评论...
验证码 换一张
取 消