如何更改默认的eclipse shell解释器?

时间:2014-01-03 07:21:18

标签: eclipse bash shell

我在eclipse中安装了ShellEd插件。每当我运行bash脚本时,即使我在脚本顶部指定了解释器指令dash,它也会使用#! /bin/bash运行它。

如何更改此行为?

2 个答案:

答案 0 :(得分:2)

应该可以选择如下设置bash解释器:

Window->Preferences-><the_plugin_name>->Interpreter.

你需要在这里设置bash解释器路径(/bin/bash)。 Eclipse将使用您在此处设置的值来执行您的程序。

答案 1 :(得分:1)

  • 您需要安装CygwinMSYS/MinGW
  • 在eclipse中添加解释器bash.exe路径,如下所示:

    Window->Preferences->Shell Script -> Interpreters

enter image description here

相关问题