Make subshell execute in a new process
authorLukáš Jiřiště <jiriste@icpf.cas.cz>
Wed, 28 Aug 2024 07:59:34 +0000 (09:59 +0200)
committerLukáš Jiřiště <jiriste@icpf.cas.cz>
Wed, 28 Aug 2024 08:39:03 +0000 (10:39 +0200)
commitf573db414f297c2d439b118949bc3cf55165b514
tree097262e2828ed58e555f2bfebb200b071d038529
parenta60f3d509f46465d54da4f2717b09b18a598d9e7
Make subshell execute in a new process

Because the OS keeps track of CWDs of its processes, subshell is made to
run in its own process not to change the CWD of main shell.
Also make exit the last executed command in a pipeline and in a program.
inc/minishell_structs.h
src/env.c
src/execution.c
src/main.c