Reputation: 18627
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?
Upvotes: 6
Views: 3906
Reputation: 845
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
Upvotes: 0
Reputation: 74631
Cygwin
or MSYS/MinGW
. Add the interpreter bash.exe
path in eclipse as follows:
Window->Preferences->Shell Script -> Interpreters
Upvotes: 3
Reputation: 23512
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.
Upvotes: 2