It occurred to me that .: hoest :. wrote in comp.os.minix:
Please use a real name..
Quote:> I need to build a simple shell for MINIX, this is a school project. But I
> don't really know where to start, so maybe you've got a simple shell for me
> as example? Or do you have some tips or suggestions?
Chapter 1 (?) of Operating Systems, Design and Implementation should give
you some hints. I once wrote a shell of my own - you can have it if you
like, but I must warn you: It's very ugly code, but it does feature
things like redirection, pipelining and some basic environment handling.
Alas, it doesn't really work that well under Minix anymore - I used
glob() to match wildcards for me, but glob() is a POSIX.2 call which isn't
available under Minix. My efforts to implement it myself stranded on
some quarrel with opendir and closedir - I never managed to get myself
to fixing that.
Martijn "Making shells is fun" van Buul
Geek code: G-- - Visit OuterSpace: mud.stack.nl 3333
Kees J. Bot: The sum of CPU power and user brain power is a constant.