Shell is created as credit for Unix/Linux Programming in C (NSWI015) at Faculty of Math and Physics, Charles University, Prague.
Task requirements: https://devnull-cz.github.io/unix-linux-prog-in-c/class-assignments/labs-assignment-2019.txt
Shell now complies to phase 2 requirements.
-
extend
struct command
ofchar*
fieldsinput
output
-
make sure
struct command
is alocated and disposed correctly after the change (inmysh.c
) -
reimplement
get_cmds.l
to use updatedstruct command
and correctly match I/O redirections -
reimplement
exec_bin.c
to suport I/O redirections -
pipeline creation and execution
-
optimize the memmory leaks
-
pass phase 2 tests
-
replace every print to STDERR with PRINT_ERR macro
-
cleanup the code