diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2020-10-01 08:25:21 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2020-10-01 08:25:21 +0300 |
commit | 2ab1c82b4097cff8763d1ed63be6478edf55eb54 (patch) | |
tree | 2ef139df749b57cc41fd607bc366b0ecdb4ee2ac /test/iolint.awk | |
parent | 2a9ffa8555af0543638cf8466d5f29d7ff1d275e (diff) | |
download | egawk-2ab1c82b4097cff8763d1ed63be6478edf55eb54.tar.gz egawk-2ab1c82b4097cff8763d1ed63be6478edf55eb54.tar.bz2 egawk-2ab1c82b4097cff8763d1ed63be6478edf55eb54.zip |
Improve iolint test.
Diffstat (limited to 'test/iolint.awk')
-rw-r--r-- | test/iolint.awk | 13 |
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 |