Hacker News new | ask | show | jobs
by grayhatter 643 days ago
The way you'd do that in Zig is by duplicating and providing that env map to the child process. You wouldn't modify the existing envmap.
1 comments

You would fork first on POSIX systems.
I've written a shell in zig, you don't need to fork before building the new envmap