Kshitiz Sharma
Kshitiz Sharma

Reputation: 18627

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?

Upvotes: 6

Views: 3906

Answers (3)

Shadyar
Shadyar

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

Premraj
Premraj

Reputation: 74631

  • 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

Upvotes: 3

slayedbylucifer
slayedbylucifer

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

Related Questions