aboutsummaryrefslogtreecommitdiffstats
path: root/test/sigpipe1.awk
diff options
context:
space:
mode:
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)
+}