Writing Own Minishell!

Hi,
I wanna write my own mini shell as a part of my project. Whole coding is to be donw in C for linux platform. I have got background of linux as well as C but now can anybody please suggest me the sources from where i can find information about how to start ? I have to implement some basic commands like ls,pwd etc. and single level pipe and redirection also. I am right now learning some C linux specific things from Advance Programming in Unix environment.
----Siddharth

siddharth_god, you are breaking the rules here, I think. You said that this is part of a project, and if so, you are breaking rule 6.

I will still give you a hint here. Read the input one character at a time and make your decisions based on the input character.

Moderators, please lock this thread.

For a start, why dont you search the forums databse ?

you could also study the sourcecode of others shells ( zsh , ksh, ash, and so on...)

  1. whether source code of shells is available in unix systems itself or not?
  2. if yes how to get it?..
  3. if no, where i can find it,.. any links...