http://www.perlmonks.org?node_id=661432


in reply to Re^4: Avoid headaches from Strawberry Perl 5.10.0 and binary SVK
in thread Avoid headaches from Strawberry Perl 5.10.0 and binary SVK

Apparently, Windows runs things in child threads?

No. No threads involved either. When unix runs a shell script, it forks the existing shell and runs the script in the child process. And environment changes are made to the child's environment block and so disappear when that shell exits. Whilst it runs, the original shell sits in the background and waits. And it is to that parent shell instance that you are returned, when the script ends.

In Windows, the .bat file is run within the same instance into which the command is entered and it is to that same instance that you are returned when the bat file ends. So any changes the .bat file makes to that shell instances environment are persisted.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.