aboutsummaryrefslogtreecommitdiffstats
path: root/test/iolint.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2020-10-01 08:25:21 +0300
committerArnold D. Robbins <arnold@skeeve.com>2020-10-01 08:25:21 +0300
commit2ab1c82b4097cff8763d1ed63be6478edf55eb54 (patch)
tree2ef139df749b57cc41fd607bc366b0ecdb4ee2ac /test/iolint.awk
parent2a9ffa8555af0543638cf8466d5f29d7ff1d275e (diff)
downloadegawk-2ab1c82b4097cff8763d1ed63be6478edf55eb54.tar.gz
egawk-2ab1c82b4097cff8763d1ed63be6478edf55eb54.tar.bz2
egawk-2ab1c82b4097cff8763d1ed63be6478edf55eb54.zip
Improve iolint test.
Diffstat (limited to 'test/iolint.awk')
-rw-r--r--test/iolint.awk13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/iolint.awk b/test/iolint.awk
index e7408151..b6c8eeb4 100644
--- a/test/iolint.awk
+++ b/test/iolint.awk
@@ -54,12 +54,13 @@ BEGIN {
# `%.*s' used for output file and output pipe
# `%.*s' used for output file and two-way pipe
# `%.*s' used for output pipe and two-way pipe
- print "hello" > "cat"
- print "hello" | "cat"
- print "hello" |& "cat"
- print close("cat")
- print close("cat")
- print close("cat")
+ 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)
fflush()
# `%.*s' used for input pipe and output pipe