xref: /illumos-gate/usr/src/test/util-tests/tests/awk/gnu/sigpipe1.awk (revision e6d6c189fa3a95d7aa27bbe0aeacf7c1a6b57c8c)
1BEGIN {
2	print "system"
3	command = "yes | true"
4	system(command)
5
6	print "pipe to command"
7	print "hi" | command
8	close(command)
9
10	print "pipe from command"
11	command | getline x
12	close(command)
13}
14