# HG changeset patch # User geert-vandeweyer # Date 1406547902 14400 # Node ID 606e24c6fda020b4ca063af36f4e3636d53a117a # Parent 94ba1a8de09165d23e250cd904d772352a3b0d83 Uploaded diff -r 94ba1a8de091 -r 606e24c6fda0 GrepFile.pl --- a/GrepFile.pl Thu Feb 13 08:39:41 2014 -0500 +++ b/GrepFile.pl Mon Jul 28 07:45:02 2014 -0400 @@ -113,9 +113,10 @@ else { die('only "file" and "single" are supported as value of the -t flag'); } - -for ($i = 1; $i<= $nrgrep ; $i++) { - ${"grep$i"}->join(); +if ($type eq 'file') { + for ($i = 1; $i<= $nrgrep ; $i++) { + ${"grep$i"}->join(); + } } $printqueue->enqueue(undef); $print->join();