aboutsummaryrefslogtreecommitdiffstats
path: root/test/pipeio3.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-10-17 22:04:42 +0300
committerArnold D. Robbins <arnold@skeeve.com>2013-10-17 22:04:42 +0300
commiteb152bbe507aef92ece4a301863263818fb50a04 (patch)
tree15679ae15d5b385adb039b537f88b04df718b592 /test/pipeio3.awk
parentc3f03fe1d5a7c1b2c7b8ff843afc506ce2a45811 (diff)
downloadegawk-eb152bbe507aef92ece4a301863263818fb50a04.tar.gz
egawk-eb152bbe507aef92ece4a301863263818fb50a04.tar.bz2
egawk-eb152bbe507aef92ece4a301863263818fb50a04.zip
Catch SIGPIPE.
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"
+}