implemented partial closing for rwpipe

This commit is contained in:
2009-08-28 06:52:20 +00:00
parent 9d635709f3
commit 81b3d369e8
6 changed files with 116 additions and 45 deletions

View File

@ -60,7 +60,7 @@ BEGIN {
print "11" || "sort";
#close the input as sort emits when the input is closed
close ("sort", "r");
while (("sort" || getline x) > 0) print x;
while (("sort" || getline x) > 0) print "xx:", x;
}
@endcode