LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-20-2005, 06:59 AM   #1
aakanksh_c
LQ Newbie
 
Registered: Sep 2005
Location: bangalore,india
Posts: 4

Rep: Reputation: 0
information on how to develop a shell for linux


hi!

i wanted information on how to develop a shell for linux or unix,
could anybody please advise me as to which site to visit and what i must do?
what are the prerequisites for developing a shell!

thanks in advance!
 
Old 09-20-2005, 07:05 AM   #2
teebones
Member
 
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 502

Rep: Reputation: 56
hi,

so you want to build your own shell huh? That's hard to do!
the prerequisites are that you really know your language(s): C/C++/ASM and such.
Granted, there are ways of creating a shell like interface with just some scripts (bash/sh), but i wouldn't do that on a production box.

Leaves you one thing.. the sites to use to learn:

there are none (i know of). Just buy some good shell programming books (there are many) and learn it.

Last edited by teebones; 09-20-2005 at 07:07 AM.
 
Old 09-20-2005, 08:18 AM   #3
addy86
Member
 
Registered: Nov 2004
Location: Germany
Distribution: Debian Testing
Posts: 332

Rep: Reputation: 31
Do you really want to create a new shell or "just" a terminal emulator (like xterm, konsole, etc.)?
I don't see the point in creating a completely new shell from scratch (ie. not based on bash, tcsh, etc.), except maybe for learning purposes.
 
Old 09-20-2005, 08:39 AM   #4
aakanksh_c
LQ Newbie
 
Registered: Sep 2005
Location: bangalore,india
Posts: 4

Original Poster
Rep: Reputation: 0
thanks teebones,

i am actually a student, i'm doing a college project on shell and if you could just tell me how to implement a few commands that would be enough i guess!

hi addy i actually wanted to develop a mini shell or something of that sort!

Last edited by aakanksh_c; 09-20-2005 at 08:41 AM.
 
Old 09-20-2005, 08:49 AM   #5
wpyh
Member
 
Registered: Jun 2004
Location: Beijing
Distribution: Slackware 9.1 but FUBAR with packages I compile myself, and OpenBSD (not exactly a distro) on QEMU
Posts: 153

Rep: Reputation: 35
Maybe read the POSIX specs?
 
Old 09-20-2005, 12:11 PM   #6
addy86
Member
 
Registered: Nov 2004
Location: Germany
Distribution: Debian Testing
Posts: 332

Rep: Reputation: 31
Do you want to create a completely new shell, or do you want to implement a new dialect for one of the existing "big" shells (like bash)?

I guess a good way to start is to have a look at the source for bash.
 
Old 06-24-2006, 04:25 AM   #7
glahiru
LQ Newbie
 
Registered: Jun 2006
Posts: 1

Rep: Reputation: 0
I also want to develop a simple shell using C could any body help me to do that.send me a mail to glahiru@gmail.com
 
Old 06-24-2006, 07:09 AM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by glahiru
I also want to develop a simple shell using C could any body help me to do that.send me a mail to glahiru@gmail.com
That's not how it works--you get answers here--for all to see.

See the previous post.

It seems to me that this question is almost like saying: "How do i write a new kernel?" or "How do I develop an application?"

Answer:
Learn a language like C
Learn how operating systems work
study the programming interface for whatever host you are writing for
study the source for existing programs
etc.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to determine system information from the shell? MWTJ Linux - General 5 08-18-2005 11:30 AM
develop soft in linux kira Programming 8 05-27-2005 09:37 AM
Finding information about the current shell atirya_yodha Linux - Newbie 3 03-18-2004 01:30 PM
How can I develop the audio program in linux? fliny Programming 3 10-03-2003 07:17 PM
Cannot find reliable information on shell commands Rakin Linux - Newbie 7 02-21-2003 10:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:51 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration