#!/bin/sh
-# Copyright (c) 2013-2014. The SimGrid Team.
+# Copyright (c) 2013-2017. The SimGrid Team.
# All rights reserved.
# This program is free software; you can redistribute it and/or modify it
# $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"
}