aboutsummaryrefslogtreecommitdiffstats
path: root/testcases
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-03-24 17:41:49 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-03-24 17:41:49 -0700
commit96d19551c0ceaf98ad065930ee82b8ff7961d826 (patch)
treecf166e7853f8907caa9eca752e70bf85dead9b68 /testcases
parentf4faff773cf7eb2b45d2658b5244d0a4c6a10c10 (diff)
downloadcppawk-96d19551c0ceaf98ad065930ee82b8ff7961d826.tar.gz
cppawk-96d19551c0ceaf98ad065930ee82b8ff7961d826.tar.bz2
cppawk-96d19551c0ceaf98ad065930ee82b8ff7961d826.zip
If Bash is available, use process substitution.
Diffstat (limited to 'testcases')
-rw-r--r--testcases8
1 files changed, 5 insertions, 3 deletions
diff --git a/testcases b/testcases
index 40933af..bf22d66 100644
--- a/testcases
+++ b/testcases
@@ -177,8 +177,10 @@ foo_bar
foo_bar
--
32:
-./cppawk --awk=./testdir/testawk foo
+./cppawk --awk=./testdir/testawk foo ;
+./cppawk --nobash --awk=./testdir/testawk foo
:
+[-f][/d][--]
[-f][/t][--]
--
33:
@@ -197,9 +199,9 @@ mawk=1
gawk=__gawk__
--
36:
-./cppawk --prepro=die --prepro-only x 2>&1 | grep 'not found'
+./cppawk --prepro=die --prepro-only x 2>&1 | (grep -q 'die.*not found' && echo "good")
:
-./cppawk: 1: eval: die: not found
+good
--
37:
tmp=$(./cppawk --awk=testdir/testdel 1); [ -e $tmp ] || echo gone