2. SHELL
This is not a kernel program, but a shell user program.
It has the following features:
- the HOME environment
- a search for executables using the PATH environment
- execution of commands
The cd is handled in the shell itself.
It is still missing the following features (some thought about these
are provided in the code)
- background jobs (&)
- pipes (|)
- i/o redirection (<, >, etc.)
- ...
Each command is read in as a whole line (with a maximum of
MAX_LINE_SIZE characters), and parsed to identify the command
name and the args.
Tested with 2.2 and 2.4 kernels.
shell.c
Next
Prev
Up
marco_corvi@geocities.com