diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2013-10-17 22:04:42 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2013-10-17 22:04:42 +0300 |
commit | eb152bbe507aef92ece4a301863263818fb50a04 (patch) | |
tree | 15679ae15d5b385adb039b537f88b04df718b592 /test/pipeio3.awk | |
parent | c3f03fe1d5a7c1b2c7b8ff843afc506ce2a45811 (diff) | |
download | egawk-eb152bbe507aef92ece4a301863263818fb50a04.tar.gz egawk-eb152bbe507aef92ece4a301863263818fb50a04.tar.bz2 egawk-eb152bbe507aef92ece4a301863263818fb50a04.zip |
Catch SIGPIPE.
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" +} |