Skip to content

Latest commit

 

History

History
74 lines (65 loc) · 2.53 KB

File metadata and controls

74 lines (65 loc) · 2.53 KB

simple_shell - Holberton School

shell

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.

Table of Contents

  1. Requeriments
  2. How to use
  3. Test
  4. Development environment
  5. Authors

Requeriments 📋

Simple Shell was built and tested in Ubuntu 14.04 LTS via Vagrant in VirtualBox and compiled with GCC.

How to use it 🔧

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

Test ⚙️

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$ |

Development environment 🛠️

This project has been tested on Ubuntu 14.06.6 LTS

Authors✒️

  • 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.