aboutsummaryrefslogtreecommitdiffstats
path: root/test/clos1way5.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/clos1way5.awk')
-rw-r--r--test/clos1way5.awk9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/clos1way5.awk b/test/clos1way5.awk
new file mode 100644
index 00000000..ca1bd94c
--- /dev/null
+++ b/test/clos1way5.awk
@@ -0,0 +1,9 @@
+BEGIN {
+ cmd = "echo test1; echo test2; sleep 2"
+ cmd |& getline x
+ print x
+ close(cmd, "from")
+ cmd |& getline x
+ print x
+ print ERRNO
+}