LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-21-2004, 08:40 AM   #1
sharadgana
LQ Newbie
 
Registered: Dec 2004
Posts: 7

Rep: Reputation: 0
Shell Script Ide


Hi,
I am new to Linux. I have shell scripting in my engg. course. I would like to know if there are any IDE's available like ones available for java etc.. by which you can compile, debug your shellscript program.


Thanks



Sharad
 
Old 12-21-2004, 08:49 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

"gcc" has a lot of features,which u require for compilation , debugging etc etc

apart from this ,for C++ there is an IDE, Kdevelop

regards
 
Old 12-21-2004, 08:58 AM   #3
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
You don't compile shell scripts, they are interpreted.

I don't think there are debuggers as such
for shell scripts.
(maybe cos they aren't really needed)


set -x does limited traces for you.

a good tip in bash or korn
put 'set -o nounset' at the top somewhere.

which will error if you reference an uninitialised variable.
can save hours of searching caused by a simple typo.
 
Old 12-21-2004, 09:05 AM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
i mentioned the compilers and debuggers for java etc....

u r right we do not compile shell scripts

regards
 
Old 12-21-2004, 09:25 AM   #5
pcunix
Member
 
Registered: Dec 2004
Location: MA
Distribution: Various
Posts: 149

Rep: Reputation: 23
Actually, you can compile shell scripts.

For example, see http://www.datsi.fi.upm.es/~frosal/sources/shc.html
http://www.sunmanagers.org/archives/1994/0322.html

People sometimes do this for purposes of obfuscation - hiding their "code" from curious eyes.

I think I tried one of these thingies way back when - can't recall why, probably just idle curiousity. I suppose you could even get some performance boost if the program were doing enough..


--
Tony Lawrence
http://aplawrence.com
 
Old 12-21-2004, 10:55 AM   #6
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
As far as a debugger, I've never gotten around to trying it, but there's this:

http://bashdb.sourceforge.net/

May be right that it's overkill, though.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell script inside shell script treotan Linux - General 4 02-19-2009 06:34 AM
Shell Scripting: Getting a pid and killing it via a shell script topcat Programming 15 10-28-2007 02:14 AM
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 05:32 PM
shell script to detect IDE devices kushalkoolwal Programming 8 09-28-2005 11:15 AM
Shell Script Ide sharadgana Linux - Software 2 12-21-2004 10:44 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration