A simple UNIX command interpreter assigned in the curriculum at Holberton School
Hsh is a simple rendition of a UNIX command language interpreter that reads and executes commands from standard input, or a file.
Compile all c files in the repository, using the wildcard command (*.c), and run the executable:
$ gcc *.c -o hsh
$ ./hshHsh can be used in two different modes, interactive and non-interactive.
Interactive hsh displays the prompt $ when it is ready to read a command and the user is able to interactively type or interrupt commands.
Example:
$./hsh
$Non-interactive hsh will take a script and emulate an interactive shell by prompting the user to input values.
Example:
$ echo "echo 'hello world'" | ./hsh
'hello world'
$echo "hello world" | ./hshor
./hsh
Holberton students have contributed test cases in order to check for edge cases.