diff options
Diffstat (limited to 'test/pipeio3.awk')
-rw-r--r-- | test/pipeio3.awk | 15 |
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" +} |