[Swift-devel] Re: array args in function apps

Allan Espinosa aespinosa at cs.uchicago.edu
Wed Apr 1 21:44:20 CDT 2009


i got it working using @filenames

type file;

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

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


On Wed, Apr 1, 2009 at 9:13 PM, Allan Espinosa
<aespinosa at cs.uchicago.edu> wrote:
> 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
>



-- 
Allan M. Espinosa <http://allan.88-mph.net/blog>
PhD student, Computer Science
University of Chicago <http://people.cs.uchicago.edu/~aespinosa>



More information about the Swift-devel mailing list