Rvm on beagleboneblack disable posix

若如初见. 提交于 2019-12-12 02:53:31

问题


I'm trying to run rvm on Angstrom linux on BBB.

When i try to launch rvm, i obtain:

RVM can not be run with set -o posix, please turn it off and try again.

Someone know about this?


回答1:


This is a check to prevent running RVM from pure Sh shells, for proper functioning RVM requires Arrays(along other features) which are only available in Bash and Zsh.




回答2:


Answer shared by @mapapis was useful to understand the reason (thanks) but I think precise steps to change the default login shell complement this and are useful.

As stated here you may need to change the login shell for your user in order to use the shell of your preference by default, in my case is bash so I made some changes the way I launch my terminal.

chsh is advised but in my particular case I'm using ConEmu Windows Terminal with Cygwin in a Windows 10 environment; sh.exe is used by default thus this RVM warning... chsh is not available in Cygwin, so I followed this reccomendation that states that:

it is just a matter of changing (...) whatever shortcut you are using to start cygwin to call {prefered shell here} instead

I hope this is useful. Gretings!



来源:https://stackoverflow.com/questions/19176558/rvm-on-beagleboneblack-disable-posix

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!