X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0ec122a780b6dd27347cca4d240de563e607f349..3a3154dd12267caf08d76df3f9c5458c9489b3a3:/src/smpi/smpitools.sh diff --git a/src/smpi/smpitools.sh b/src/smpi/smpitools.sh index a8fc1a339c..e40e14476e 100644 --- a/src/smpi/smpitools.sh +++ b/src/smpi/smpitools.sh @@ -1,6 +1,6 @@ -#!/bin/sh +#!/usr/bin/env sh -# Copyright (c) 2013-2014. The SimGrid Team. +# Copyright (c) 2013-2018. The SimGrid Team. # All rights reserved. # This program is free software; you can redistribute it and/or modify it @@ -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" }