From: pini Date: Sat, 13 Mar 2010 17:19:59 +0000 (+0000) Subject: Expand space-separated values of --log and --cfg arguments. X-Git-Tag: SVN~492 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/349f41400e5b647fe8b5825a8e6339ad7ebec3b4 Expand space-separated values of --log and --cfg arguments. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7247 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/smpi/smpirun.in b/src/smpi/smpirun.in index e1ea7e88db..49ea4e1bb3 100755 --- a/src/smpi/smpirun.in +++ b/src/smpi/smpirun.in @@ -64,7 +64,10 @@ while true; do ;; "--cfg="*|"--log="*) - SIMOPTS="$SIMOPTS '$1'" + for OPT in ${1#*=} + do + SIMOPTS="$SIMOPTS ${1%%=*}=$OPT" + done shift 1 ;; *)