Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 549
Kshitiz Sharma Avatar asked Oct 01 '22 23:10

Kshitiz Sharma


2 Answers

  • 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

like image 97
Premraj Avatar answered Oct 18 '22 09:10

Premraj


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.

like image 39
slayedbylucifer Avatar answered Oct 18 '22 09:10

slayedbylucifer