Why rvm needs login shell?

余生长醉 提交于 2021-02-07 22:46:17

问题


As far as I know, rvm is a set of bash scripts. Why it need login shells? Which property which only exists in login shells is necessary for rvm?

Related post: rvm installation not working: “RVM is not a function”


回答1:


Your RVM config line ([[ -s "$HOME/.rvm ...) likely located is in .profile, which is only read when your bash is on login-shell mode. There are other config files that are read in other modes as well, like .bashrc when the shell is interactive, but non-login or file defined by $BASH_ENV when it is non-interactive.

See INVOCATION section in man bash for more details.



来源:https://stackoverflow.com/questions/38929577/why-rvm-needs-login-shell

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