From: Arnaud Giersch Date: Fri, 27 Oct 2017 20:56:24 +0000 (+0200) Subject: Workaround shellcheck warning about $'s inside single quotes. X-Git-Tag: v3.18~372 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d3d441fa818b99e391f0c418a9023af5d95940d2?ds=sidebyside Workaround shellcheck warning about $'s inside single quotes. --- 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" }