diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-07-23 22:11:52 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-07-23 22:11:52 +0300 |
commit | adb5491f2c9f49bf3d0e57f52c55bcaa4221e36e (patch) | |
tree | 4e76b81c1ec485cc10f52d47b699a894cf65a247 /test/status-close.awk | |
parent | b7a631b6fa5ed5577520eccb1608956bd40a74e0 (diff) | |
parent | de23ab7bfbea6ee03ef7386c6c203a4b2b7b7116 (diff) | |
download | egawk-adb5491f2c9f49bf3d0e57f52c55bcaa4221e36e.tar.gz egawk-adb5491f2c9f49bf3d0e57f52c55bcaa4221e36e.tar.bz2 egawk-adb5491f2c9f49bf3d0e57f52c55bcaa4221e36e.zip |
Merge branch 'master' into feature/nocopy
Diffstat (limited to 'test/status-close.awk')
-rw-r--r-- | test/status-close.awk | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/status-close.awk b/test/status-close.awk new file mode 100644 index 00000000..345bea49 --- /dev/null +++ b/test/status-close.awk @@ -0,0 +1,14 @@ +BEGIN { + cat = "cat ; exit 3" + print system("echo xxx | (cat ; exit 4)") + + print "YYY" | cat + + print close(cat) + + echo = "echo boo ; exit 5" + echo | getline boo + print "got", boo + + print close(echo) +} |