A simple UNIX command interpreter.
- Unix shell
- Thompson shell
- Ken Thompson
- man or help:
sh(Run sh as well)
gcc -Wall -Werror -Wextra -pedantic -std=gnu89 *.c -o hsh
Interactive Mode
$ ./hsh
($) /bin/ls
hsh main.c shell.c
($)
($) exit
$
Non Interactive Mode
$ echo "/bin/ls" | ./hsh
hsh main.c shell.c test_ls_2
$
$ cat test_ls_2
/bin/ls
/bin/ls
$
$ cat test_ls_2 | ./hsh
hsh main.c shell.c test_ls_2
hsh main.c shell.c test_ls_2
$
- Language: C
- OS: Ubuntu
- Compiler: gcc
- Style guidelines: Betty style