fix: programs inherit environ

This commit is contained in:
2026-10-09 15:22:24 +02:00
parent 4c150fe869
commit 7dc85ea994

View File

@@ -315,7 +315,7 @@ print_prompt:
pid = fork(); pid = fork();
if(pid == 0) { if(pid == 0) {
return execvpe(tokens[0], tokens, NULL); return execvpe(tokens[0], tokens, environ);
} else { } else {
waitpid(pid, &wstatus, 0); waitpid(pid, &wstatus, 0);