From 4447d4b29682a5aa4b09c47de9a1659b0f167d3b Mon Sep 17 00:00:00 2001 From: Sevinj Aghayeva Date: Sun, 17 Apr 2022 13:27:20 -0400 Subject: mbuto: quote variables when calling eval We need to pass suboptions multiple arguments as a single string, as in SUBOPT_collection="net proc" Without these quotes the result of eval becomes SUBOPT_collection=net proc which assings only the value "net" to SUBOPT_collection. Signed-off-by: Sevinj Aghayeva --- mbuto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mbuto b/mbuto index 44b9a56..f9ee6c5 100755 --- a/mbuto +++ b/mbuto @@ -497,7 +497,7 @@ subopts_get_one() { [ "${__profile}" != "${PROFILE}" ] && return 1 [ "${__passed}" != "${__short}" ] && return 1 - eval $(echo SUBOPT_${__name}="${__value}") + eval $(echo SUBOPT_${__name}=\"${__value}\") } # subopts_get() - Set sub-option values, validating against SUBOPTS -- cgit v1.2.3