From 38b754971817f3d372bfe4bf5c1fb1fc66668e8d Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 13 Mar 2019 02:04:51 -0400 Subject: tests/ob_parse_dep.sh: Replace echo and improve quotes in eval cmd --- (limited to 'tests') diff --git a/tests/ob_parse_dep.sh b/tests/ob_parse_dep.sh index 1684a3f..77351d0 100755 --- a/tests/ob_parse_dep.sh +++ b/tests/ob_parse_dep.sh @@ -36,8 +36,8 @@ testcase() result='ok_' for comp in pkg archqual rel ver arches; do - test_comp="$(eval echo \"\$\{test_${comp}\}\")" - good_comp="$(eval echo \"\$\{${comp}\}\")" + test_comp="$(eval "printf '%s' \"\${test_${comp}}\"")" + good_comp="$(eval "printf '%s' \"\${${comp}}\"")" if [ "${test_comp}" != "${good_comp}" ]; then diag_ "$(printf 'Dependency "%s", component "%s":' \ "${dep}" "${comp}")" -- cgit v0.9.1