7 use Term::ANSIColor ':constants';
10 my $CSTAT = BOLD . GREEN;
11 my $CCORE = BOLD . CYAN;
15 my $code = system (@ARGV);
22 my $status = $code >> 8;
23 my $signum = $code & 127;
24 my $core = $code & 128;
27 @sig_idx{split /\s+/, $Config{sig_num}} = split /\s/, $Config{sig_name};
32 Results of execution: `%s`
33 ----------------------
34 System exit code:$CCODE %d $CRST$CSIG %s $CRST
35 ($CSTAT%08b$CRST$CCORE%b$CRST$CSIG%07b$CRST)
37 Status: %3s ($CSTAT%08b$CRST)
38 Signal: %3s ($CSIG%08b$CRST)
40 ----------------------
43 $code, ($signum ? "(SIG-$sig_idx{$signum})" : ''),
44 $status, $core, $signum,