Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Open input pipe FileHandle interferes with die+exit #294
my $fh = new FileHandle;
# close($fh) fixes it
Exits with zero return code.
Tested on perl5.00.
It appears that the implicit close of $fh is changing the exit code.
* If 'find / -print', then exit code is 13 (SIGPIPE)
My guess would be that $? from the close($fh) is being used as Perl's
* find : SIGPIPE => $? == 13 => exit(13) => exit code 13.
On Fri, 30 Jul 1999 10:12:28 EDT, Justin Vallon wrote:
Please try 5.005_58. I put in a fix for this.