Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Expand space-separated values of --log and --cfg arguments.
authorpini <pini@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sat, 13 Mar 2010 17:19:59 +0000 (17:19 +0000)
committerpini <pini@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sat, 13 Mar 2010 17:19:59 +0000 (17:19 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7247 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/smpi/smpirun.in

index e1ea7e8..49ea4e1 100755 (executable)
@@ -64,7 +64,10 @@ while true; do
    ;;
    
    "--cfg="*|"--log="*)
-     SIMOPTS="$SIMOPTS '$1'"
+     for OPT in ${1#*=}
+     do
+       SIMOPTS="$SIMOPTS ${1%%=*}=$OPT"
+     done 
      shift 1
    ;;
     *)