aboutsummaryrefslogtreecommitdiffstats
path: root/test/pty2.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-01-10 22:14:27 +0200
committerArnold D. Robbins <arnold@skeeve.com>2018-01-10 22:14:27 +0200
commitcc8c981c9eaed42e1afd278afac787cd2aeab55f (patch)
tree66daeb2dc1049a6112445705f6b92cea55958bd7 /test/pty2.awk
parentdd2516767fa58d56684e003f646ef6d611051a64 (diff)
parent7d463f19f1fc98a7d4f99e3575c545ca7009d9db (diff)
downloadegawk-cc8c981c9eaed42e1afd278afac787cd2aeab55f.tar.gz
egawk-cc8c981c9eaed42e1afd278afac787cd2aeab55f.tar.bz2
egawk-cc8c981c9eaed42e1afd278afac787cd2aeab55f.zip
Merge branch 'master' into feature/fix-comments
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)
+}