2012-06-25 64 views
3

当我运行...为什么Perlbrew在Mac OS X Lion上启动bash?

perlbrew switch perl-5.16.0

...我得到...

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

...然后会出现一个bash提示符。

这是预期的行为? 如果不是,我该如何解决?

回答

5

我拿到的行为,如果我不尝试使用perlbrew之前执行

source .../perlbrew/etc/bashrc 
在我的shell(bash)的

。你有没有将它添加到你的shell启动脚本?有一个类似的csh脚本:

source .../perlbrew/etc/cshrc 
+1

谢谢ikegami,完美的工作。我将源代码行添加到'〜/ .bash_profile'中。具体来说,如果还有另一个像我这样的Mac新手:'source/Users/Username/perl5/perlbrew/etc/bashrc' – cfoster