diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1998-06-22 01:14:14 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-06-22 01:14:14 +0000 |
commit | a2008d6d9087873a23da5012f181cb674dbf4ab1 (patch) | |
tree | e0e61a56820ba722535f48599cb94a8dbfbd9ce9 /pod/perlfunc.pod | |
parent | 7e5428c5eadf5068dae305575a105bd61a84cb5d (diff) | |
download | perl-a2008d6d9087873a23da5012f181cb674dbf4ab1.tar.gz |
merge relevant portions from maintbranch change#1155
p4raw-link: @1155 on //depot/maint-5.004/perl: c7664d5b6ade225b1576289e62712eec26808f84
p4raw-id: //depot/perl@1186
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r-- | pod/perlfunc.pod | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 31367ed07b..bfb1c30577 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -3836,7 +3836,17 @@ the new position. 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 -arguments. The return value is the exit status of the program as +arguments. If there is more than one argument in LIST, or if LIST is +an array with more than one value, starts the program given by the +first element of the list with arguments given by the rest of the list. +If there is only one scalar argument, the argument is +checked for shell metacharacters, and if there are any, the entire +argument is passed to the system's command shell for parsing (this is +C</bin/sh -c> on Unix platforms, but varies on other platforms). If +there are no shell metacharacters in the argument, it is split into +words and passed directly to execvp(), which is more efficient. + +The return value is the exit status of the program as returned by the wait() call. To get the actual exit value divide by 256. See also L</exec>. This is I<NOT> what you want to use to capture the output from a command, for that you should use merely backticks or |