Fix pipeline behaviour
authorLukáš Jiřiště <jiriste@icpf.cas.cz>
Tue, 27 Aug 2024 09:37:57 +0000 (11:37 +0200)
committerLukáš Jiřiště <jiriste@icpf.cas.cz>
Tue, 27 Aug 2024 09:37:57 +0000 (11:37 +0200)
commitf2736b869e672fdf7e9827214701c32dec49f582
treee841c5dc48062aabe5bca6785e1a765bf90e8505
parent7d83204207a2bc012b3f2c75ac61a84a7ea4c7e9
Fix pipeline behaviour

The return value is now set only after pipeline finishes (to the return
value of last command).
The shell also does not wait for each commmand in pipeline to end before
starting the following command (preventing getting stuck on full pipe).
Built-in functions still can get stuck when pipe gets full.
inc/minishell_structs.h
src/env.c
src/execution.c
src/main.c