in reply to Re^2: How to make `system` not ignore SIG INT in Perl?
in thread How to make `system` not ignore SIG INT in Perl?

The added pipe means that there now sits a shell between your program and the child processes. I would assume that the shell does not pass on the exit status of its children.

  • Comment on Re^3: How to make `system` not ignore SIG INT in Perl?

Replies are listed 'Best First'.
Re^4: How to make `system` not ignore SIG INT in Perl?
by salva (Canon) on Sep 13, 2011 at 07:50 UTC
    It does!:
    $ perl -E 'system "sleep 3 | tail "; say $?' ^C2