Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a bash/ksh/any shell script IDE.

Don't you get annoyed when you forget the space inside if or I don't know, some minor syntax mistakes you do from time to time, but takes you a long time to figure it out(especially when one is tired).

I knew about some suggestion listed below, but I'm looking for something like eclipse(i.e. for java).

share|improve this question
You can use ShellCheck to find common bugs and pitfalls in your scripts > shellcheck.net – Ian2thedv May 13 at 11:38
up vote 8 down vote accepted

Just about every editor support syntax highlighting for shell - this can help you spot problems.

In addition, you can put set -x and set -e at the top of your scripts. The -x tells the shell to print out every command before it executes it. The -e tells the shell to terminate the script if any errors occur. These should really help cut down on time spent looking for bugs.

share|improve this answer
+1 for showing more forbearance in answering this question than I would. :) – Warren Young Apr 14 '11 at 17:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.