Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #937 from zostay/proc-command
Fix #913: Add documentation for shell and command
  • Loading branch information
jonathanstowe committed Oct 5, 2016
2 parents b074734 + e94ccc8 commit b7cdcfe
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions doc/Type/Proc.pod6
Expand Up @@ -84,24 +84,39 @@ if the process it run exited unsuccessfully.
method spawn(*@args ($, *@), :$cwd = $*CWD, Hash() :$env = %*ENV) returns Bool:D
Runs the C<Proc> objects with the given command, argument list, working directory and environment.
Runs the C<Proc> object with the given command, argument list, working directory
and environment.
=head2 method shell
method shell($cmd, :$cwd = $*CWD, :$env) returns Bool:D
Runs the C<Proc> object with the given command, which is passed through to the
shell for parsing and execution.
=head2 method command
method command(Prod:D:) returns Array:D
The command method is an accessor to an array containing the arguments that were
passed when the Proc objectd was executed via C<spawn> or C<shell> or C<run>.
=head2 method exitcode
method exitcode(Proc:D) returns Int:D
method exitcode(Proc:D:) returns Int:D
Returns the exit code of the external process, or -1 if it has not exited yet.
=head2 method signal
method signal(Proc:D)
method signal(Proc:D:)
Returns the signal number with which the external process was killed, or 0 or
an undefined value otherwise.
=head2 method pid
method pid(Proc:D)
method pid(Proc:D:)
Returns the Process Identifier (pid) of the external process, if available.
Expand Down

0 comments on commit b7cdcfe

Please sign in to comment.