summaryrefslogtreecommitdiff
path: root/test/getline3.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/getline3.awk')
-rw-r--r--test/getline3.awk7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/getline3.awk b/test/getline3.awk
new file mode 100644
index 0000000..03e1239
--- /dev/null
+++ b/test/getline3.awk
@@ -0,0 +1,7 @@
+BEGIN {
+ cmd = "echo 3"
+ y = 7
+ cmd | getline x y
+ close(cmd)
+ print (cmd | getline x y)
+}