Quote:
Originally Posted by prez
so why it is not run as a child process when function is called directly in the main script
|
1. because that is what shells do.
2. It's more useful as so you *can* have functions that change global variables.
3. It means it does not have to fork() another process to do the job.