Skip to content

Latest commit

 

History

History
47 lines (40 loc) · 807 Bytes

File metadata and controls

47 lines (40 loc) · 807 Bytes

simple_shell

A simple UNIX command interpreter.

Resources

Compilation

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

Testing

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
$

Environment

  • Language: C
  • OS: Ubuntu
  • Compiler: gcc
  • Style guidelines: Betty style