[Swift-commit] r2939 - trunk/libexec
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Sun May 17 07:00:03 CDT 2009
Author: benc
Date: 2009-05-17 07:00:03 -0500 (Sun, 17 May 2009)
New Revision: 2939
Modified:
trunk/libexec/_swiftwrap
Log:
Move away from using $@ for application parameters and instead use an
in-swift array. This makes it easier later on to get parameters from
a file instead of the wrapper commandline.
Modified: trunk/libexec/_swiftwrap
===================================================================
--- trunk/libexec/_swiftwrap 2009-05-17 08:49:26 UTC (rev 2938)
+++ trunk/libexec/_swiftwrap 2009-05-17 12:00:03 UTC (rev 2939)
@@ -178,6 +178,9 @@
fail 254 "Missing arguments (-a option)"
fi
+declare -a CMDARGS
+CMDARGS=("$@")
+
if [ "$STATUSMODE" = "files" ]; then
mkdir -p $WFDIR/status/$JOBDIR
fi
@@ -262,9 +265,9 @@
fi
if [ "$KICKSTART" == "" ]; then
if [ "$STDIN" == "" ]; then
- "$EXEC" "$@" 1>"$STDOUT" 2>"$STDERR"
+ "$EXEC" "${CMDARGS[@]}" 1>"$STDOUT" 2>"$STDERR"
else
- "$EXEC" "$@" 1>"$STDOUT" 2>"$STDERR" <"$STDIN"
+ "$EXEC" "${CMDARGS[@]}" 1>"$STDOUT" 2>"$STDERR" <"$STDIN"
fi
checkError $? "Exit code $?"
else
More information about the Swift-commit
mailing list