Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2.fluke 9/24/84; site fluke.UUCP
Path: utzoo!watmath!clyde!cbosgd!ihnp4!zehntel!tektronix!uw-beaver!microsoft!fluke!jeff
From: jeff@fluke.UUCP (Jeff Stearns)
Newsgroups: net.bugs.4bsd
Subject: awk doesn't wait for subordinate processes to complete
Message-ID: <2076@vax4.fluke.UUCP>
Date: Mon, 14-Jan-85 19:05:24 EST
Article-I.D.: vax4.2076
Posted: Mon Jan 14 19:05:24 1985
Date-Received: Mon, 21-Jan-85 06:24:49 EST
Organization: John Fluke Mfg. Co., Inc., Everett, WA
Lines: 52

Index: 	 usr.bin/awk/main.c 4.2BSD

Description:
	If one redirects awk output through a filter, awk does not wait
	for the filter to terminate before awk itself terminates.  The
	output therefore appears asynchronously while subsequent commands
	are being processed.  In a shell script, this can be fatal if the
	filter is, for example, sort(1).

Repeat-By:
	% awk 'END { print "echo hi" | "sh" }'