-#!/bin/sh
+#!/usr/bin/env sh
# Copyright (c) 2013-2017. The SimGrid Team.
# All rights reserved.
# $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"
}