aboutsummaryrefslogtreecommitdiffstats
path: root/test/pty2.awk
diff options
context:
space:
mode:
Diffstat (limited to 'test/pty2.awk')
-rw-r--r--test/pty2.awk9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/pty2.awk b/test/pty2.awk
new file mode 100644
index 00000000..c2eedbd0
--- /dev/null
+++ b/test/pty2.awk
@@ -0,0 +1,9 @@
+BEGIN {
+ cmd = "tr '[A-Z]' '[a-z]' 2> /dev/null"
+ PROCINFO[cmd, "pty"] = 1
+ input = "ABCD"
+ print input |& cmd
+ cmd |& getline x
+ print x
+# close(cmd)
+}