Holberton School Shell (hsh), is a simple program of the line commands. This simple shell recreates basic and some more complex functionalities to result in our own Shell. This shell si developed in the programming language c. This shell takes the keyboard commands and delivers them to the system to be executed. some built-in commands implement: exit, env, help, cd.
Simple Shell was built and tested in Ubuntu 14.04 LTS via Vagrant in VirtualBox and compiled with GCC.
Do you need clone this repository:
git clone https://github.com/untalinfo/simple_shell
and then you can compile with this command:
gcc -Wall -Werror -Wextra -pedantic *.c -o hsh
after compilation you can excecute with this command:
./hsh
Some examples of how to used this simple shell:
vagrant@vagrant-ubuntu-trusty-64:~/simple_shell$ ./hsh
$
$ pwd
/home/vagrant/simple_shell
$|
vagrant@vagrant-ubuntu-trusty-64:~/simple_shell$ ./hsh
$ ls
AUTHORS _fork.c holberton.h man_1_simple_shell node.c selector.c test_ls
README.md hack hsh messages.c promp.c strfuncions.c
$|
This shell version can also be tested in non-interactive mode:
vagrant@vagrant-ubuntu-trusty-64:~/simple_shell$ echo "/bin/ls" | ./hsh
AUTHORS _fork.c holberton.h man_1_simple_shell node.c selector.c test_ls
README.md hack hsh messages.c promp.c strfuncions.c
vagrant@vagrant-ubuntu-trusty-64:~/simple_shell$ |
vagrant@vagrant-ubuntu-trusty-64:~/simple_shell$ cat test_ls
/bin/ls
/bin/ls
vagrant@vagrant-ubuntu-trusty-64:~/simple_shell$ cat test_ls | ./hsh
/bin/ls
/bin/ls
vagrant@vagrant-ubuntu-trusty-64:~/simple_shell$ |
This project has been tested on Ubuntu 14.06.6 LTS
- The tests are carried out in virtualBox
- Development environment manager vagrant
- Dairo Facundo Durarte - student at Holberton School
- Oscar Eduardo Info - student at Holberton School
You can also look at the list of all contributors who have participated in this project.
