From 0395a4e70104af857737a45bc7f678149bf5a584 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Tue, 1 Feb 2022 05:55:41 +0000 Subject: Use quotes to preserve space separated lists --- vespabase/src/start-cbinaries.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'vespabase/src/start-cbinaries.sh') diff --git a/vespabase/src/start-cbinaries.sh b/vespabase/src/start-cbinaries.sh index 52c4c5a0de8..2f0a923b074 100755 --- a/vespabase/src/start-cbinaries.sh +++ b/vespabase/src/start-cbinaries.sh @@ -97,7 +97,7 @@ check_bname_in_value () { configure_valgrind () { no_valgrind=true if which valgrind >/dev/null 2>&1; then - if check_bname_in_value $VESPA_USE_VALGRIND; then + if check_bname_in_value "$VESPA_USE_VALGRIND"; then no_valgrind=false valgrind_log=$VESPA_HOME/tmp/valgrind.$bname.log.$$ case $VESPA_VALGRIND_OPT in @@ -108,7 +108,7 @@ configure_valgrind () { } configure_huge_pages () { - if check_bname_in_value $VESPA_USE_HUGEPAGES_LIST; then + if check_bname_in_value "$VESPA_USE_HUGEPAGES_LIST"; then log_debug_message "Want huge pages for '$bname' since VESPA_USE_HUGEPAGES_LIST=${VESPA_USE_HUGEPAGES_LIST}" export VESPA_USE_HUGEPAGES="yes" fi @@ -134,15 +134,15 @@ configure_use_madvise () { } configure_vespa_malloc () { - if check_bname_in_value $VESPA_USE_NO_VESPAMALLOC; then + if check_bname_in_value "$VESPA_USE_NO_VESPAMALLOC"; then # log_debug_message "Not using vespamalloc for '$bname' since VESPA_USE_NO_VESPAMALLOC=${VESPA_USE_NO_VESPAMALLOC}" return fi suf=vespa/malloc/libvespamalloc.so - if check_bname_in_value $VESPA_USE_VESPAMALLOC_D; then + if check_bname_in_value "$VESPA_USE_VESPAMALLOC_D"; then suf=vespa/malloc/libvespamallocd.so fi - if check_bname_in_value $VESPA_USE_VESPAMALLOC_DST; then + if check_bname_in_value "$VESPA_USE_VESPAMALLOC_DST"; then suf=vespa/malloc/libvespamallocdst16.so fi -- cgit v1.2.3