Hi again Larry, > What status close() returns depends on your awk. And closing a pipe > should wait for the command to finish so if you've a grep that > produces 1E6 lines and you just want to read the first then pipe it > into `sed 1q' before reading it into awk so the grep gets a SIGPIPE on > writing to the finished sed, curtailing its largess.
Thinking about it some more. As long as your command does the default thing of dying on SIGPIPE you don't need to worry about curtailing its output since close() in awk will deliver a SIGPIPE to the writer when it next attempts to write(2). I must have had something in the past that either blocked SIGPIPE or did something else strange that meant I had to mess around in this way. Cheers, Ralph. _______________________________________________ Groff mailing list Groff@gnu.org http://lists.gnu.org/mailman/listinfo/groff