Skip to content

Commit

Permalink
CAF::Process: Deprecate support for executing in a subshell
Browse files Browse the repository at this point in the history
As discussed in quattor#255.
  • Loading branch information
jrha committed Jul 2, 2018
1 parent 9247d08 commit ab5c94a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/perl/Process.pm
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,10 @@ sub execute
push (@opts, "$k=$self->{OPTIONS}->{$k}");
}

if (@opts->{shell}) {
$self->warning('Executing process using subshell, this is deprecated and may be removed in a future release.');
}

return $self->_LC_Process(
'execute',
[$self->{COMMAND}, %{$self->{OPTIONS}}],
Expand Down

0 comments on commit ab5c94a

Please sign in to comment.