aboutsummaryrefslogtreecommitdiffstats
path: root/test/iolint.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2021-05-10 21:35:54 +0300
committerArnold D. Robbins <arnold@skeeve.com>2021-05-10 21:35:54 +0300
commit229c965beec283952be89b889b5c407ccf620ace (patch)
treebae512cdd65937de5249fb31450d2a851aa9e194 /test/iolint.awk
parentaa6a71c05ac79553f88583264179054998037f90 (diff)
parentf6cc8139dba1adbfa90773c9db8003e5db817d7b (diff)
downloadegawk-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.awk20
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