Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Expand space-separated values of --log and --cfg arguments.
[simgrid.git] / 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
    ;;
     *)