Remove may_exit member of env
authorLukáš Jiřiště <jiriste@icpf.cas.cz>
Tue, 27 Aug 2024 15:02:44 +0000 (17:02 +0200)
committerLukáš Jiřiště <jiriste@icpf.cas.cz>
Tue, 27 Aug 2024 15:02:44 +0000 (17:02 +0200)
commita60f3d509f46465d54da4f2717b09b18a598d9e7
tree7bb123857556675a416d1df1997abb5d0b91747f
parentc42a24327d2cfb362fbefba14da087276cce4c56
Remove may_exit member of env

This was implemented to mimic the behaviour of piped exit.
But bash just runs piped commands in separate processes which leads to
piped builtins not having effect on the current session.
So I think it will be more pure without this check and if the bash
behaviour is needed, piping may be delegated to forked processes.
inc/minishell_structs.h
src/builtins/exit.c
src/execution.c