Build my own simple shell capable of changing directories and executing system programs such as pwd
and ls
. The goal of this is to familiarize myself with system-related library functions.
Two main goalsthe
- Become more familiar with how the OS provides process control services that can be invoked by a user application. Specifically, the
shell
will use all three system calls: fork, exec, and wait. - Become familiar with how a program can access a set of system environment variables using the getenv standard library function.
- Process control:
- fork man page
- wait man page
- exec man page
- Process API OSTEP textbook
- Environment variables:
- getenv man page