[Swift-devel] weird error

Mihael Hategan hategan at mcs.anl.gov
Wed Apr 4 11:35:22 CDT 2007


Exactly. Swift does not trim arguments.

On Wed, 2007-04-04 at 11:32 -0500, Yuqing Deng wrote:
> The arguments are parsed in the perl script with
> Getopt::Long .  If the argument string does not begin with -,
> it does not get parsed correctly.  It's like doing ls " -C",
> which is not equal to ls -C .
> 
> Yuqing
> 
> On 4/4/07, Mihael Hategan <hategan at mcs.anl.gov> wrote:
> > The execution was probably screwed up because the application was
> > receiving incorrect arguments. What was the behavior you expected?
> >
> > Mihael
> >
> > On Wed, 2007-04-04 at 10:46 -0500, Veronika V. Nefedova wrote:
> > > Hi,
> > >
> > > I came across some weird error. It could be the application's error, or it
> > > could be swift's error. Here is what I have. This is my function definition:
> > >
> > > (file out1) GRAND_FINALE (file in1, file in2, file arr[], string s) {
> > >      app {
> > >       fepl "--nosite" "--resultonly" "--wham_outputs" @in1 "--solv_lrc_file"
> > > @in2 "--fe_file" @out1;
> > >       }
> > > }
> > >
> > > It is working just fine. BUT -- I had a typo there: I had 1 extra space in
> > > the first 2 arguments. I.e. I had " --nosite"  and " --resultonly". These 2
> > > extra spaces completely screwed up the application execution. So I am not
> > > sure why -- I would think that it shouldn't really cause any problems. I am
> > > Cc Yuqing Deng (its his application that I was running).
> > >
> > > I would be interested to find out why such a small typo caused such big
> > > problems...
> > >
> > > Thanks,
> > >
> > > Nika
> > >
> > > _______________________________________________
> > > Swift-devel mailing list
> > > Swift-devel at ci.uchicago.edu
> > > http://mail.ci.uchicago.edu/mailman/listinfo/swift-devel
> > >
> >
> >
> 




More information about the Swift-devel mailing list