From 23249ef206ef23760e814cb9f8170e7ae93dabcc Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 27 Mar 2022 23:42:26 -0700 Subject: New header and macro. This provides a portable case statement implemented directly as switch on GNU Awk, and using other approaches on other Awks that do not have switch. --- runtests | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'runtests') diff --git a/runtests b/runtests index ddc1bbd..3396b07 100755 --- a/runtests +++ b/runtests @@ -1,4 +1,6 @@ #!/bin/sh trap 'rm -f output script.sh' EXIT INT TERM -cppawk=./cppawk ./testsuite.awk < testcases -cppawk="./cppawk --nobash" ./testsuite.awk < testcases +cppawk=./cppawk ./testsuite.awk testcases +cppawk="./cppawk --nobash" ./testsuite.awk testcases +cppawk=./cppawk ./testsuite.awk testcases-case +cppawk="./cppawk --awk=mawk" ./testsuite.awk testcases-case -- cgit v1.2.3