From 96d19551c0ceaf98ad065930ee82b8ff7961d826 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 24 Mar 2022 17:41:49 -0700 Subject: If Bash is available, use process substitution. --- testcases | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'testcases') 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 -- cgit v1.2.3