[Swift-devel] array args in function apps

Allan Espinosa aespinosa at cs.uchicago.edu
Wed Apr 1 21:13:55 CDT 2009


type file;

app (file out) cat(file infile[]) {
  cat @infile stdout=@out;
}

file infile[] <ext;exec="mapper.sh">;
file out <"test.out">;
out= cat(infile);

wift svn swift-r2748 cog-r2341

RunID: 20090401-2105-aevaa3o9
Progress:
Execution failed:
	Exception in cat:
Arguments: [1.in 2.in 3.in 4.in 5.in 6.in 7.in 8.in 9.in 10.in]
Host: localhost
Directory: manyargs-20090401-2105-aevaa3o9/jobs/x/cat-xszn9s8j
stderr.txt: /bin/cat: 1.in 2.in 3.in 4.in 5.in 6.in 7.in 8.in 9.in
10.in: No such file or directory

stdout.txt:
----

Caused by:
	Exit code 1

---
I remember when i ran using regular arguments, there are commas
separating them in swift's logs. maybe 1.in ... 10.in is seen as one
string?


log is in http://www.ci.uchicago.edu/~aespinosa/swift/manyargs-20090401-2105-aevaa3o9.log



More information about the Swift-devel mailing list