/simple_shell

A simple UNIX command interpreter.

Primary LanguageC

Simple Shell (AZA Shell)

Write a simple UNIX command interpreter.

List of allowed functions and system calls

Compilation

gcc -Wall -Werror -Wextra -pedantic -std=gnu89 *.c -o hsh

Output

$ ./hsh
AZA$ /bin/ls
hsh main.c shell.c
AZA$
AZA$ exit
$

AND

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

Authors

Ahmed Sakr | @Ahmed-Mohmed-Sakr