Does a Child Process in Linux Assume the Environment Variables of the Parent Process?

You want to know if child processes of a parent process inherit the environment variables of the process that spawned it. Does the child process get the variables?

Yes (according to page 568 of The Linux Programming Interface).

Leave a comment

Your email address will not be published. Required fields are marked *