Implementation of bash shell in C, for the Operating System Course in HKU.
- 64-bit ubuntu 14.04 LTS
- gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
- Compilation:
gcc src/myshell.c -o myshell -Wall
- Run:
./myshell
- Commands in
/bin:/usr/bin
- pipe
- background mode
timeX
: a built-in function for counting execution time, support pipe and foreground commands. For instance,timeX ls -l | wc
- SIGINT signal in
myshell
. You cannot exit this program using SIGINT signal. Useexit
instead.
cd
: changing folder is not supported inmyshell