Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Another user of CLONE-HASH-DECONTAINERIZED
  • Loading branch information
lizmat committed Jan 26, 2015
1 parent f4a8fda commit 04317fe
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/core/io_operators.pm
Expand Up @@ -114,26 +114,12 @@ multi sub pipe( $command as Str,:$enc,:$nodepr,|c) {
DEPRECATED(":encoding($enc)",|<2014.12 2015.12>,:what(":enc($enc)"))
if $enc and !$nodepr;

my Mu $hash-with-containers := nqp::getattr(%*ENV, EnumMap, '$!storage');
my Mu $hash-without := nqp::hash();
my Mu $enviter := nqp::iterator($hash-with-containers);

my $envelem;
while $enviter {
$envelem := nqp::shift($enviter);
nqp::bindkey(
$hash-without,
nqp::iterkey_s($envelem),
nqp::decont(nqp::iterval($envelem)),
);
}

my str $errpath; # what is this good for?
# TODO: catch error, and fail()
my $PIO := nqp::openpipe(
nqp::unbox_s($command),
nqp::unbox_s($*CWD.chop),
$hash-without,
CLONE-HASH-DECONTAINERIZED(%*ENV),
$errpath,
);

Expand Down

0 comments on commit 04317fe

Please sign in to comment.