hsh is a simple command line interpreter based on the functionality of the POSIX 1003.2-conformant Dash command line interpreter on Ubuntu 14.04. For pedagogical reasons, hsh was written using only limited subset of the C89 standard library (see Implementation).
- Clone this repository:
git clone "https://github.com/christopherchoe/simple_shell.git" - Compile all
Csource files in thesimple_shelldirectory usinggcc 4.8or later:
gcc -Wall -pedantic -Werror -Wextra *.c -o hsh
- To run in interactive mode:
./hsh - To run in non-interactive mode:
echo "ls -l" | ./hsh
- exit
- env
- setenv
- unsetenv
- cd
hsh was written using only limited subset of the C89 standard library including the following standard functions and system calls:
access, execve, exit, fork, free, getline, malloc, perror, wait, write, isatty
Chris and Fernando are software engineers always open to new opportunities, so do not hesitate to contact us.
This project is free to use without permission. However, it is provided as-is and with absolutely no warranties.
Written with StackEdit. Seriously, check it out.