'How to change default eclipse shell interpreter?

I have installed the ShellEd plugin in eclipse. Whenever I run a bash script it runs it using dash even if I specify interpreter directive #! /bin/bash at the top of the script.

How do I change this behavior?



Solution 1:[1]

THere should be an option to set the bash interpreter as follows:

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

you need to set you bash interpreter path here (/bin/bash). Eclipse will use the value you set here to execute your program.

Solution 2:[2]

  • You need to install Cygwin or MSYS/MinGW.
  • Add the interpreter bash.exe path in eclipse as follows:

    Window->Preferences->Shell Script -> Interpreters

enter image description here

Solution 3:[3]

In new versions of Eclipse current v2.23.0 and beyond the path to change terminal is:
Windows > Preferences > Shell > Local Terminal, under subtitle Show in there is a button labeled Add

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 slayedbylucifer
Solution 2 Premraj
Solution 3 Shadyar