Reputation: 19579
In linux, some program/process is created by the init, and also those process also need to set some Environment Variables.
I think, when the init start to run, the shell just don't started.
So, How can the init set the Environment Variables without a shell.
Upvotes: 1
Views: 583
Reputation: 2841
Environment variables can be exported from a process to its parent(s) then is then inherited to other children and grand children including the shell
Upvotes: 2