dualcyclone
02-24-2004, 08:32 PM
Hi,
I have an assignment whereby I have to make myself a basic shell and also make my own versions of some of the core commands, these are:
pwd
ls
cd
kill
I have managed to figure out pwd (only because I asked someone for their code, then i worked out how it worked and made my own version from there)
I just wanted to know if anyone knew where i could find any versions of these written in C? I need to understand how the code works, once ive done that, its easy to build my own and cut up to my own standard.
I'm not asking you guys to do my work for me - obviously! I wouldnt learn anything that way.
I just need to find a decent resource that shows me exactly how these functions work, and their in-built arguments, etc...
Please step me in the right direction, Linux is very new to me, and being thrown in at the deep end of the ocean before you can swim isnt very nice at all!
Cheers guys
I have an assignment whereby I have to make myself a basic shell and also make my own versions of some of the core commands, these are:
pwd
ls
cd
kill
I have managed to figure out pwd (only because I asked someone for their code, then i worked out how it worked and made my own version from there)
I just wanted to know if anyone knew where i could find any versions of these written in C? I need to understand how the code works, once ive done that, its easy to build my own and cut up to my own standard.
I'm not asking you guys to do my work for me - obviously! I wouldnt learn anything that way.
I just need to find a decent resource that shows me exactly how these functions work, and their in-built arguments, etc...
Please step me in the right direction, Linux is very new to me, and being thrown in at the deep end of the ocean before you can swim isnt very nice at all!
Cheers guys