|Next||System Programming in Perl||11|
Why fork and then exec?
Why not a single call that does both?
The separation of fork and exec is probably the most brilliant innovation in the design of Unix
Because the child process can alter its environment before it does the exec
For example: ls > /tmp/files