Re: Writing a shell program in C
- From: "L7" <jesse.r.brown@xxxxxxxxx>
- Date: 27 Aug 2006 17:17:54 -0700
souissipro wrote:
Hi L7,
In fact it's for an asignment for school and I should do it. Therfeore,
if you have a C shell that does what is listed in my email or you know
a link to something similar It would be of great help for me.
Then, I'm sorry, but I can not provide you with an answer. One of the
most rewarding aspects of education is the fact that you conquer it
yourself.
I would repeat: I'm looking for a C shell that does the functionlities
I have mentionned. A simple undesrtandable shell !!
As I mentioned, what I have is ruby, and the result is understandable
enough (and in C), but there is _no_ functionality.
Thanks a lot,
Souissipro
The links provided will give you plenty to draw from.
Good luck.
L7 wrote:
souissipro wrote:
Dear ALL,
I'm C and shell beginner and I should write a sheel that does the
following:
By 'should', do you mean that this is an asignment for school or that
you would like to learn by trying this as an exercise?
- reads an input line from standard input, parses the line into
commands and arguments, calls the command with the arguments and waits
for it to terminate.
- includes i/o redirection, environment variables, parameter and
command substitution, command line editing and filter management.
There are fully functional shells out there already. There is no reason
to 'reinvent the wheel'.
If you mean that you need to design this type of behavior, are you
willing/permitted to use the underlying shell to do the work for you?
I would greatly appreciate if anybody could provide me with a shell
that has the functionalities mentionned above and that I can start with
my learning?
As mentioned, there are other shells out there. However, if you are
looking to design your own, I have a ruby script that will take a
config file of required commands and produce a compilable C program
with only the actions of the commands to be filled in. The 'shell' will
already be created, you will just have to create the code for each
function.
Thank you very much for your help,
souissipro
.
- References:
- Writing a shell program in C
- From: souissipro
- Re: Writing a shell program in C
- From: L7
- Re: Writing a shell program in C
- From: souissipro
- Writing a shell program in C
- Prev by Date: Re: Code Comprehension
- Next by Date: Re: Linked list problem (puzzle)
- Previous by thread: Re: Writing a shell program in C
- Next by thread: Sorting question
- Index(es):
Relevant Pages
|