aboutsummaryrefslogtreecommitdiffstats
path: root/test/pipeio3.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-10-17 22:05:08 +0300
committerArnold D. Robbins <arnold@skeeve.com>2013-10-17 22:05:08 +0300
commit45ebe190c01c030e82483a9ef5d032aba32dad1f (patch)
treed266ee0bb659282f5ab03eb310f410543fede1a3 /test/pipeio3.awk
parentbafdfda0467c8f0bb6cd88f124fe9ded0f70cd29 (diff)
parenteb152bbe507aef92ece4a301863263818fb50a04 (diff)
downloadegawk-45ebe190c01c030e82483a9ef5d032aba32dad1f.tar.gz
egawk-45ebe190c01c030e82483a9ef5d032aba32dad1f.tar.bz2
egawk-45ebe190c01c030e82483a9ef5d032aba32dad1f.zip
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'test/pipeio3.awk')
-rw-r--r--test/pipeio3.awk15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/pipeio3.awk b/test/pipeio3.awk
new file mode 100644
index 00000000..a1cd3743
--- /dev/null
+++ b/test/pipeio3.awk
@@ -0,0 +1,15 @@
+BEGIN {
+ outputCommand = "cart"
+ inputCommand = "ls"
+
+ print "doing first print" > "/dev/stderr"
+ print "hello" | outputCommand
+
+ print "doing first getline" > "/dev/stderr"
+ inputCommand | getline
+
+ print "doing second print" > "/dev/stderr"
+ print "hello" | outputCommand
+
+ print "made it here" > "/dev/stderr"
+}