标签: eclipse bash shell
我在eclipse中安装了ShellEd插件。每当我运行bash脚本时,即使我在脚本顶部指定了解释器指令dash,它也会使用#! /bin/bash运行它。
ShellEd
dash
#! /bin/bash
如何更改此行为?
答案 0 :(得分:2)
应该可以选择如下设置bash解释器:
Window->Preferences-><the_plugin_name>->Interpreter.
你需要在这里设置bash解释器路径(/bin/bash)。 Eclipse将使用您在此处设置的值来执行您的程序。
/bin/bash
答案 1 :(得分:1)
Cygwin
MSYS/MinGW
在eclipse中添加解释器bash.exe路径,如下所示:
bash.exe
Window->Preferences->Shell Script -> Interpreters