[Swift-commit] r2555 - trunk/libexec

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Tue Feb 17 07:16:41 CST 2009


Author: benc
Date: 2009-02-17 07:16:40 -0600 (Tue, 17 Feb 2009)
New Revision: 2555

Modified:
   trunk/libexec/seq.sh
Log:
cluster seq.sh argument list was not being cleared between job invocations
in the same cluster. When a job was run with a shorter argument list than
a previous job, the present job would incorrectly inherit additional
parameters from that previous job. This commit fixes that.

Modified: trunk/libexec/seq.sh
===================================================================
--- trunk/libexec/seq.sh	2009-02-17 13:16:01 UTC (rev 2554)
+++ trunk/libexec/seq.sh	2009-02-17 13:16:40 UTC (rev 2555)
@@ -28,9 +28,10 @@
 EXEC="$1"
 shift
 
+# we go round this loop once for each clustered job
 while [ "$EXEC" != "" ]; do
 	echo `date +%s` LOOP-START >> $WRAPPERLOG
-	ARGS=
+	declare -a ARGS
 	INDEX=0
 	
 	ARG="$1"
@@ -56,7 +57,7 @@
 		echo `date +%s` FAILED >> $WRAPPERLOG
 		exit $EXITCODE
 	fi
-
+        unset ARGS
 	EXEC="$1"
 	shift
 done




More information about the Swift-commit mailing list