Rvm on beagleboneblack disable posix

2019-09-09 21:43发布

问题:

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!