[Swift-user] Argument list to long

Mihael Hategan hategan at mcs.anl.gov
Sun Oct 17 15:15:10 CDT 2010


Quoting from the bash man page:
"If the word is double-quoted, ${name[*]} expands to a single word with
the value of each array member separated by the first character of the
IFS  special  variable, and ${name[@]}  expands each element of name to
a separate word."


On Sun, 2010-10-17 at 19:53 +0000, jon.monette at gmail.com wrote:
> What is the difference between ${CMDARGS[*]} and ${CMDARGS[@]}
> Sent on the Sprint® Now Network from my BlackBerry®
> 
> -----Original Message-----
> From: Mihael Hategan <hategan at mcs.anl.gov>
> Date: Sun, 17 Oct 2010 12:45:14 
> To: Jonathan Monette<jon.monette at gmail.com>
> Cc: Justin M Wozniak<wozniak at mcs.anl.gov>; <swift-user at ci.uchicago.edu>
> Subject: Re: [Swift-user] Argument list to long
> 
> Swift r3684.
> 
> Essentially it was this:
> -                       CMDARGS=("${CMDARGS[*]}" "$line")
> +                       CMDARGS=("${CMDARGS[@]}" "$line")
> 
> Mihael
> 
> On Sun, 2010-10-10 at 22:27 -0500, Jonathan Monette wrote:
> > Attached is the info and parameter file for one of the invocations.  
> > Here is the app procedure.
> > 
> > 
> > app ( Image proj_img ) mProject( Image raw_img, MosaicData hdr )
> > {
> >      mProject "-X" @raw_img @proj_img @hdr;
> > }
> > 
> > 
> > On 10/10/2010 10:26 PM, Mihael Hategan wrote:
> > > On Sun, 2010-10-10 at 20:24 -0700, Mihael Hategan wrote:
> > >> I can't reproduce this.
> > >>
> > >> Can you paste the parameter file and info files (if you have those) from
> > >> this invocation?
> > >>
> > >> Also, has the swift script changed since you last mentioned it?
> > > Actually that's not what you last sent. So can you paste the swift code
> > > for the app procedure for mProject?
> > >
> > 
> 
> 





More information about the Swift-user mailing list