The fake missing binary functions check if the binary has already be
added to the diagnostic message to avoid duplicates. Unfortunately,
this check was buggy because the message string does not have the
trailing space.
hash $binary 2>/dev/null || eval "
test_missing_external_prereq_${binary}_=t
$binary () {
- echo -n \"\$test_subtest_missing_external_prereqs_\" | grep -qe \" $name \" ||
+ echo -n \"\$test_subtest_missing_external_prereqs_ \" | grep -qe \" $name \" ||
test_subtest_missing_external_prereqs_=\"\$test_subtest_missing_external_prereqs_ $name\"
false
}"