Welcome to our custom implementation of the Bourne Shell (sh). This project is a collaborative effort to create a minimal yet functional shell environment.
- Custom command-line interpreter based on the Bourne Shell (
sh). - Handles basic command execution, changing directories, and more.
To compile the shell, use the following command:
gcc -Wall -Werror -pedantic -Wextra -std=gnu89 *.c -o hsh./run ./hsh ./checker tests/simple_shell_0.1
# or
./checker ./hsh tests/simple_shell_0.1/test_file(s)Once compiled, you can start the shell by running
./hshHere are a few basic commands you can try with our custom shell:
ls- List directory contents (Accepts arguments like-l,-atoo).cd- Change the current directory.echo- Display a line of text.exit- Exit the exit. (Ctrl + Cworks as well.)
- Language: C
- Standard: Gnu89
- Warnings: All enabled for best practices and error prevention.
By: Emmanuel K. Tettey and Lincoln Mihigo