diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2021-05-10 21:35:54 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2021-05-10 21:35:54 +0300 |
commit | 229c965beec283952be89b889b5c407ccf620ace (patch) | |
tree | bae512cdd65937de5249fb31450d2a851aa9e194 /test/iolint.awk | |
parent | aa6a71c05ac79553f88583264179054998037f90 (diff) | |
parent | f6cc8139dba1adbfa90773c9db8003e5db817d7b (diff) | |
download | egawk-229c965beec283952be89b889b5c407ccf620ace.tar.gz egawk-229c965beec283952be89b889b5c407ccf620ace.tar.bz2 egawk-229c965beec283952be89b889b5c407ccf620ace.zip |
Merge branch 'gawk-5.1-stable'
Diffstat (limited to 'test/iolint.awk')
-rw-r--r-- | test/iolint.awk | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/test/iolint.awk b/test/iolint.awk index 3f3bb22f..a866ed6d 100644 --- a/test/iolint.awk +++ b/test/iolint.awk @@ -38,10 +38,10 @@ BEGIN { fflush() # `%.*s' used for output file and output pipe" - print "junk" > "md5sum" - print "hello" | "md5sum" - print close("md5sum") - print close("md5sum") + print "junk" > "cksum" # cksum is more portable than md5sum + print "hello" | "cksum" + print close("cksum") + print close("cksum") fflush() # `%.*s' used for input pipe and output file @@ -55,13 +55,11 @@ BEGIN { # `%.*s' used for output file and two-way pipe # `%.*s' used for output pipe and two-way pipe # Not doing |& due to race condition and signals. sigh - exec_cat = "exec cat" - print "/bin/cat \"$@\"" > exec_cat - print "hello" | exec_cat - # print "hello" |& exec_cat - print close(exec_cat) - print close(exec_cat) - # print close(exec_cat) + cat = "cat" + print "hello" | "cat" + print "/bin/cat \"$@\"" > "cat" + print close("cat") + print close("cat") fflush() # `%.*s' used for input pipe and output pipe |