A question about shell like bash
-
- Posts: 6
- Joined: Sat Jul 14, 2007 3:05 am
A question about shell like bash
How to move the shell like bash in my own OS? Is it requires special system call or have another request? please help me ,thank you !!!
- AndrewAPrice
- Member
- Posts: 2309
- Joined: Mon Jun 05, 2006 11:00 pm
- Location: USA (and Australia)
Bash? You do know how complex Bash is? Most shells require the C standard library, so you'll have to port newlib to your OS. And before you get your hopes up about that, have you implemented a file system driver, a program loader, paging?
My OS is Perception.
-
- Posts: 6
- Joined: Sat Jul 14, 2007 3:05 am
..
If the Bash is very complex like you said,Why does the linux 0.11 can run the bash. I don't think the linux 0.11 is very complex
- AndrewAPrice
- Member
- Posts: 2309
- Joined: Mon Jun 05, 2006 11:00 pm
- Location: USA (and Australia)
Re: ..
I asked if you have the following:label_3162073 wrote:If the Bash is very complex like you said,Why does the linux 0.11 can run the bash. I don't think the linux 0.11 is very complex
- A file system driver - so you can load bash from disk.
- A program loader - which will convert what's on disk into a valid program image in memory.
- A paging and multitasking system - not required, but I'm guessing you want bash to execute programs?
- A port of C standard library to your OS - so bash will compile and and run on your system.
I agree Linux 0.11 isn't very complex, but it still includes all the above features.
My OS is Perception.