aboutsummaryrefslogtreecommitdiffstats
path: root/test/sigpipe1.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-05-12 22:39:48 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-05-12 22:39:48 +0300
commitd7b4254cbf5f70d430e21f4f8ca90e354e251bac (patch)
treeebead5b02dae267232b6e597612704f9a3697235 /test/sigpipe1.awk
parent9205d5d6fd20ad78918b44100063ade0b1374ede (diff)
parent29f8ff8ee26d1c5c3fad9129786687c745322494 (diff)
downloadegawk-d7b4254cbf5f70d430e21f4f8ca90e354e251bac.tar.gz
egawk-d7b4254cbf5f70d430e21f4f8ca90e354e251bac.tar.bz2
egawk-d7b4254cbf5f70d430e21f4f8ca90e354e251bac.zip
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'test/sigpipe1.awk')
-rw-r--r--test/sigpipe1.awk13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/sigpipe1.awk b/test/sigpipe1.awk
new file mode 100644
index 00000000..9b23f390
--- /dev/null
+++ b/test/sigpipe1.awk
@@ -0,0 +1,13 @@
+BEGIN {
+ print "system"
+ command = "yes | true"
+ system(command)
+
+ print "pipe to command"
+ print "hi" | command
+ close(command)
+
+ print "pipe from command"
+ command | getline x
+ close(command)
+}