From: Gurusamy Sarathy Date: Wed, 13 May 1998 10:13:36 +0000 (+0000) Subject: [win32] merge change#687 from maintbranch X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8bf3b0160d4c1eb438fae06bde281bc41041cd88;p=p5sagit%2Fp5-mst-13.2.git [win32] merge change#687 from maintbranch p4raw-link: @687 on //depot/maint-5.004/perl: c022640ffe6c81652bbb39f7fbd4cdcea8d5aae0 p4raw-id: //depot/win32/perl@929 --- diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 17ede1a..7ddb710 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -1076,6 +1076,8 @@ in case 6. =item exec LIST +=item exec PROGRAM LIST + The exec() function executes a system command I - use system() instead of exec() if you want it to return. It fails and returns FALSE only if the command does not exist I it is executed @@ -3564,6 +3566,8 @@ the new position. =item system LIST +=item system PROGRAM LIST + Does exactly the same thing as "exec LIST" except that a fork is done first, and the parent process waits for the child process to complete. Note that argument processing varies depending on the number of @@ -3573,6 +3577,9 @@ returned by the wait() call. To get the actual exit value divide by the output from a command, for that you should use merely backticks or qx//, as described in L. +Like exec(), system() allows you to lie to a program about its name if +you use the "system PROGRAM LIST" syntax. Again, see L. + Because system() and backticks block SIGINT and SIGQUIT, killing the program they're running doesn't actually interrupt your program.