Results 1 to 6 of 6
m doing Engg n m from India..
i got to build my own linux shell for my project...
how do i start with......
- 07-11-2010 #1Just Joined!
- Join Date
- Jul 2010
- Posts
- 7
how to create my own C shell??
m doing Engg n m from India..
i got to build my own linux shell for my project...
how do i start with...
- 07-14-2010 #2Just Joined!
- Join Date
- Jul 2010
- Posts
- 53
you can simple shell to read from 0 and write to 1
else grab sources to shell you like the most as a starting point
must add your shell to /etc/SHELLS to make it a login shell
- 07-14-2010 #3Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
As per the terms of use of these forums, help with school/class assignments/projects is not allowed. Please don't ask us to do your work for you. That is why you are going to school and taking these classes...
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 07-14-2010 #4Just Joined!
- Join Date
- Jul 2010
- Posts
- 7
- 07-14-2010 #5Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
You can find out more about the c-shell from books like this (from Amazon.com): https://www.amazon.com/Unix-C-Shell-...dp/013937468X/
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 07-15-2010 #6
If the basic purpose of a shell is to interpret user's commands, and launch other processes, then you will want to do some studying on the use of readline(), and fork() plus exec() family of functions. You may also benefit from understanding the concept of environment and its contents. As most shells are also interpretive programming environments, you may also want to learn about the likes of lexical analysers and parsers, and the tools one uses to generate them (lex & yacc). When you understand most of these things, writing your shell should come fairly easily.
--- rod.Stuff happens. Then stays happened.


Reply With Quote
