On Wed, Feb 03, 2016 at 01:37:18AM +0200, Peter Pentchev wrote: > Hi, > > [roam@straylight ~]$ perl6 -e 'use v6.c; use strict; my $p = run "false"; say > $p.exitcode;' 1 > [roam@straylight ~]$ perl6 -e 'use v6.c; use strict; my $p = run "false", > :out; say $p.exitcode;' > 0 > [roam@straylight ~]$ perl6 -e 'use v6.c; use strict; my $p = run "false", > :out; print $p.out.slurp-rest; say $p.exitcode;' > 0 > [roam@straylight ~]$ > > So, uhm, what am I missing? Shouldn't $p.exitcode remain 1 no matter whether > I've invoked run() with or without :out? Should I file a bug?
Just for the record, my $p = Proc.new(:out); $p.spawn(...); behaves in exactly the same way (no big surprise there, just thought I'd check). G'luck, Peter -- Peter Pentchev r...@ringlet.net r...@freebsd.org p...@storpool.com PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13
signature.asc
Description: PGP signature