views:

143

answers:

6

I have learned shell-scripting in linux environment.

Now I am unable to install Linux on my PC. I need to practice shell-scripting.

Currently, I have Windows XP installed on my PC. Is there any known IDE which can help me practice shell-scripting programs in windows environment?

Thanks in advance.

+2  A: 

Hi, If you are using eclipse for other programming language like JAVA, C++, PHP, I'd recommend this plugin

There is a fact as to "IDE for scripting languages" that the features that other IDEs for compiled and object oriented languages provide are based on the compiler of the programming language abilities and object oriented paradigms.... Support from IDE for scripting language is not so helpful.

The easiest way would be either linux LiveCD or virtual box, you shouldn't have problem with both alternatives. With Linux Bash/shell you'll get a support you need for learning shell scripting, like shell debug mode with verbose output (run with -x -v parameters) where you can see how the code is being interpreted etc.

lisak
Is it recommended with netbeans6.9? I am much comfortable with it. Eclipse may do though.
Humming Bird
I don't think there is a netbeans plugin for shell scripting... But as I said, the shell editor wouldn't provide useful support anyway.
lisak
+3  A: 

"IDE" and "scripting language", especially Unix shell are almost mutually exclusive.

Do yourself a favor, get a LiveCD and script in a non brain-damaged environment. And get a really good book and learn it better than your instructor may know.

msw
It's tiring and not process.
Humming Bird
+2  A: 

Shell scripting in windows is substantially different from linux - the syntax is pretty much completely different, and cmd.exe is simply a totally different environment than bash, csh or ksh. I'd expect your exam to be about unix/linux shell scripting, not cmd.exe.

If you want to get close, cygwin might do the trick; it provides a basic UNIX layer for windows, giving you most of the UNIX command line's functionality. It's still not the real thing though; also, downloading and burning a live CD and booting it is less of a hassle than installing cygwin (and getting it to work properly).

I'm also curious how your partition table can be damaged in a way that prevents you from installing Linux, yet allows you to boot into XP flawlessly.

tdammers
@tdammers: Yes. My exams are for Linux shell-scripting, to be precise bash scripting. Well, I'd definitely try out cygwin and post my reviews about it.
Humming Bird
+1  A: 

Try CYGWIN. This project is intended to recreate UNIX environment in Windows.

Lavir the Whiolet
Already answered by tdammers.
Humming Bird
+1  A: 

If your computer has the juice, you may want to download Oracle Virtualbox (it's free!) and install one of the many Linux distros (Ubuntu is probably the best) as a virtual machine. That way you have a real environment without having to leave your primary OS.

As far as an IDE, if you're simply looking for syntax highlighting I believe gnome's gedit (which should come with Ubuntu) will do syntax highlighting against .sh scripts. I doubt something more robust exists for this purpose (i.e. with code completion and such).

Matt Baker
+2  A: 

I found a cool Online IDE, which will perhaps help me to write simple bash scripts.

Here it is: Ideone.com

Humming Bird