diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-05-12 22:40:14 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-05-12 22:40:14 +0300 |
commit | 330f73ad4bc9e2b54b1d77eb5988a945f0ffe55c (patch) | |
tree | 45057a68341808a496eae608ce047e60642101ec /test/sigpipe1.awk | |
parent | e2bfaff631c465275f8289385e95406d22a3aeda (diff) | |
parent | d7b4254cbf5f70d430e21f4f8ca90e354e251bac (diff) | |
download | egawk-330f73ad4bc9e2b54b1d77eb5988a945f0ffe55c.tar.gz egawk-330f73ad4bc9e2b54b1d77eb5988a945f0ffe55c.tar.bz2 egawk-330f73ad4bc9e2b54b1d77eb5988a945f0ffe55c.zip |
Merge branch 'master' into feature/cmake
Diffstat (limited to 'test/sigpipe1.awk')
-rw-r--r-- | test/sigpipe1.awk | 13 |
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) +} |