Skip to content

A bash-like shell implementation in C11 (plus POSIX.1-2008) using Linux syscalls, with built-in commands and IO redirection with pipes

License

Notifications You must be signed in to change notification settings

gabrieldiem/shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shell

Repositorio para el esqueleto del TP: shell del curso Mendez-Fresia de Sistemas Operativos (7508) - FIUBA

Integrantes

  • Victoria Avalos - 108434
  • Julieta Perez Goldstein - 107997
  • Walter Gabriel Diem - 105618
  • Gonzalo Ranzani - 105933

Respuestas teóricas

Utilizar el archivo shell.md provisto en el repositorio

Compilar

make

Pruebas

  • Ejecutar todas las pruebas
make test
  • Ejecutar una única prueba
make test-TEST_NAME

Por ejemplo:

make test-env_empty_variable

Cada identificador de una prueba se muestra entre paréntesis (TEST_NAME) al lado de cada test cuando se ejecutan todas las pruebas.

=== Temporary files will be stored in: /tmp/tmp0l10br1k-shell-test ===

PASS 1/26: cd . and cd .. work correctly by checking pwd (no prompt) (cd_back)
PASS 2/26: cd works correctly by checking pwd (no prompt) (cd_basic)
PASS 3/26: cd with no arguments takes you home (/proc/sys :D) (cd_home)
PASS 4/26: empty variables are not substituted (env_empty_variable)
...

Ejecutar

./sh

Linter

make format

Para efectivamente subir los cambios producidos por make format, hay que hacer git add . y git commit.

About

A bash-like shell implementation in C11 (plus POSIX.1-2008) using Linux syscalls, with built-in commands and IO redirection with pipes

Topics

Resources

License

Stars

Watchers

Forks