[Swift-commit] r7546 - SwiftApps/swift-galaxy/swift
ketan at ci.uchicago.edu
ketan at ci.uchicago.edu
Sun Feb 2 18:12:58 CST 2014
Author: ketan
Date: 2014-02-02 18:12:58 -0600 (Sun, 02 Feb 2014)
New Revision: 7546
Modified:
SwiftApps/swift-galaxy/swift/swiftforeachrange.sh
Log:
user defined arbitrary args
Modified: SwiftApps/swift-galaxy/swift/swiftforeachrange.sh
===================================================================
--- SwiftApps/swift-galaxy/swift/swiftforeachrange.sh 2014-02-02 23:39:54 UTC (rev 7545)
+++ SwiftApps/swift-galaxy/swift/swiftforeachrange.sh 2014-02-03 00:12:58 UTC (rev 7546)
@@ -23,7 +23,7 @@
logfile=$1
while [ $# -gt 0 ] ; do
- a="$a""$1"
+ a="$a"" $1"
shift
done
@@ -35,11 +35,11 @@
app (file _out, file _err) anapp(file _exec, int _i, string _args){
sh @_exec _i _args stdout=@_out stderr=@_err;
}
-string args="$a"
+string args="$a";
file exec<"$executable">;
foreach i in [$rstart:$rend:$stepsize]{
- file out <single_file_mapper; file=@strcat("$outloc", "/", ".", i, ".out")>;
- file err <single_file_mapper; file=@strcat("$outloc", "/", ".", i, ".err")>;
+ file out <single_file_mapper; file=@strcat("$outloc", "/", i, ".out")>;
+ file err <single_file_mapper; file=@strcat("$outloc", "/", i, ".err")>;
(out,err) = anapp(exec, i, args);
}
EOF
More information about the Swift-commit
mailing list