Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Workaround shellcheck warning about $'s inside single quotes.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 27 Oct 2017 20:56:24 +0000 (22:56 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 28 Oct 2017 07:46:28 +0000 (09:46 +0200)
src/smpi/smpitools.sh

index d562d9e..40fcd3a 100644 (file)
@@ -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"
 }