The command routine

Combined from primary sources listed below.

In class Proc::Async ( Type/Proc/Async )§

See primary docmentation in context for method command.

method command§

method command(Proc::Async:D: --> List:D)

Available as of v6.d.

Returns the command and arguments used for this Proc::Async object:

my $p := Proc::Async.new: 'cat', 'some', 'files';
$p.command.say# OUTPUT: «(cat some files)␤»

In class Proc ( Type/Proc )§

See primary docmentation in context for method command.

method command§

method command(Proc:D: --> List:D)

The command method is an accessor to a list containing the arguments that were passed when the Proc object was executed via spawn or shell or run.