3 ms·
"export" in shells has to change the environ before they start the new process. It may not be "at runtime" for the new process, but it would be for the shell.
by Izkata 3y ago
"export" in shells has to change the environ before they start the new process. It may not be "at runtime" for the new process, but it would be for the shell.
- account42 3y agoWrong, export does not have to change the shell's environment at all. There are plenty of exec variants that accept a different environment pointer, same for posix_spawn.