aboutsummaryrefslogtreecommitdiffstats
path: root/test/clos1way2.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/clos1way2.awk')
-rw-r--r--test/clos1way2.awk5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/clos1way2.awk b/test/clos1way2.awk
new file mode 100644
index 00000000..7dab6a67
--- /dev/null
+++ b/test/clos1way2.awk
@@ -0,0 +1,5 @@
+{
+ cmd = "cat - 1>&2; sleep 2"
+ print |& cmd; close(cmd, "to")
+ print |& cmd; print ERRNO
+}