From d3d441fa818b99e391f0c418a9023af5d95940d2 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Fri, 27 Oct 2017 22:56:24 +0200 Subject: [PATCH] Workaround shellcheck warning about $'s inside single quotes. --- src/smpi/smpitools.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smpi/smpitools.sh b/src/smpi/smpitools.sh index d562d9ee16..40fcd3a5fc 100644 --- a/src/smpi/smpitools.sh +++ b/src/smpi/smpitools.sh @@ -69,5 +69,5 @@ list_set () { # $1: list # usage: eval $(list_get list) list_get () { - printf 'IFS="$LISTSEP"; eval set -- \\$%s; IFS="$SAVEIFS"' "$1" + printf 'IFS="'\$'LISTSEP"; eval set -- \$%s; IFS="'\$'SAVEIFS"\n' "$1" } -- 2.20.1