Why does Perlbrew launch bash on Mac OS X Lion?

Deadly 提交于 2019-11-28 05:31:49

问题


When I run...

perlbrew switch perl-5.16.0

...I get...

A sub-shell is launched with perl-5.16.0 as the activated perl. Run 'exit' to finish it.

...then a bash prompt appears.

Is this expected behavior? If not, how can I fix it?


回答1:


That happens when you have an improperly installed perlbrew. As part of the installation, you are instructed to add a command to your shell startup script, but that appears to be missing.

Add the following to your shell startup script:

source .../perlbrew/etc/bashrc

There's a similar script for csh.

source .../perlbrew/etc/cshrc


来源:https://stackoverflow.com/questions/11194041/why-does-perlbrew-launch-bash-on-mac-os-x-lion

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